Setting the textbox height issue

burak

Centurion
Joined
Jun 17, 2003
Messages
127
Hello,

I am using a textbox in multiline format

<asp:TextBox id="txtJobDesc" Runat="server"
MaxLength="2000" Width="255" Height="115"
TextMode="MultiLine"></asp:TextBox>

this shows up fine on IE but it just shows up as

<textarea name="txtJobDesc" id="txtJobDesc">

on netscape, without any width or height settings.

I tried to solve this problem by assigning the width
and the height in the code behind as follows

txtJobDesc.Height = Unit.Pixel(115)
txtJobDesc.Width = Unit.Pixel(255)

but even this didn't solve the problem.

How can I fix this so that it shows up fine on
Netscape?

Thank you,

Burak
 
Try using style instead. For example:

Code:
<asp:TextBox id="txtJobDesc" Runat="server"
MaxLength="2000" style="height:115px;width:255px"
TextMode="MultiLine"></asp:TextBox>
 
Back
Top