Re: Fit web controls in one line
From: Peter (czupet_at_wsinc.com)
Date: 02/10/04
- Next message: Sami Vaaraniemi: "Re: how can I execute a batch file during build time ?"
- Previous message: Søren Lund Jensen: "Background compile in VS.NET with C# in next version?"
- Maybe in reply to: Peter: "Re: Fit web controls in one line"
- Next in thread: Jeffrey Tan[MSFT]: "Re: Fit web controls in one line"
- Reply: Jeffrey Tan[MSFT]: "Re: Fit web controls in one line"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 10 Feb 2004 07:33:30 -0600
Thanks for your help, that solved my problem!
I have another question!
If my web page is more than one screen, how can I make it scroll with out
scrolling up the top or the left side of the table?
""Jeffrey Tan[MSFT]"" <v-jetan@online.microsoft.com> wrote in message
news:D%23PzhA47DHA.2992@cpmsftngxa07.phx.gbl...
>
> Hi Peter,
>
> Thank you for posting in the community!
>
> Based on my understanding, you write a web form which arrange your
controls
> in 2 rows, while being displayed in <table>, each row is wrapped, so all
> the controls are displayed in 4 or even more rows
>
> ===============================================
> Based on my experience, this is the default behavior of Html code in IE
> browser. The row wraps because the IE browser window can not display the
> whole row.
>
> I think you want the controls not to wrap. Just display as in design-time.
>
> To workaround this issue, you can inclue all your controls in a <table>,
> and hide the table's border. Like this:
> <TABLE cellpadding="0" cellspacing="0" border="0">
> <TR>
> <TD style="WIDTH: 249px">Last Name:<asp:textbox id="txtFirstName"
> runat="server" Width="145px"></asp:textbox></TD>
> <TD style="WIDTH: 261px">FirstName:
> <asp:textbox id="Textbox2" runat="server"></asp:textbox></TD>
> <TD style="WIDTH: 254px">
> Last Update:
> <asp:textbox id="Textbox3" runat="server" Width="134px"
> Enabled="False"></asp:textbox></TD>
> </TR>
> <TR>
> <TD style="WIDTH: 249px"><FONT size="3">
> <DIV style="DISPLAY: inline; WIDTH: 46px; HEIGHT: 19px"
> ms_positioning="FlowLayout">Phone:</DIV>
> <asp:textbox id="Textbox4" runat="server"
> Width="145px"></asp:textbox></FONT></TD>
> <TD style="WIDTH: 261px">
> <DIV style="DISPLAY: inline; WIDTH: 38px; HEIGHT: 19px"
> ms_positioning="FlowLayout">Email:</DIV>
> <asp:textbox id="Textbox5" runat="server" Width="198px"></asp:textbox>
> </FONT>
> </TD>
> <TD style="WIDTH: 254px">
> <DIV style="DISPLAY: inline; WIDTH: 70px; HEIGHT: 15px"
> ms_positioning="FlowLayout">Department:</DIV>
> <asp:textbox id="Textbox6" runat="server"
> Width="136px"></asp:textbox></FONT></TD>
> </TR>
> </TABLE>
>
> In the html code, I use cellpadding="0" cellspacing="0" border="0" to make
> the table's border do not display.
>
> I also have added the alternated project in the attachment, please refer
to
> it.
>
> ======================================================
> Please apply my suggestion above and let me know if it helps resolve your
> problem.
>
> Thank you for your patience and cooperation. If you have any questions or
> concerns, please feel free to post it in the group. I am standing by to be
> of assistance.
> Have a nice day!!
>
> Best regards,
> Jeffrey Tan
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
- Next message: Sami Vaaraniemi: "Re: how can I execute a batch file during build time ?"
- Previous message: Søren Lund Jensen: "Background compile in VS.NET with C# in next version?"
- Maybe in reply to: Peter: "Re: Fit web controls in one line"
- Next in thread: Jeffrey Tan[MSFT]: "Re: Fit web controls in one line"
- Reply: Jeffrey Tan[MSFT]: "Re: Fit web controls in one line"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|