asp:TextBox

F

foldface

Hi
I have code like this:

<asp:textbox id="theID" Runat="server" readonly=True width="150px">

It gets rendered as this:

<INPUT id=theID style="WIDTH: 100%" readOnly value=Normal name=theID>

Why has the width changed? I've seen this before and, like now,
I resort to using

<input runat=server...

because that doesn't change.

I did have a look with reflector to see if I could see anything but
no joy

Any ideas?

ta

F
 
F

foldface

Hi
I actually tracked this down to a bit of code in the base class that
I knew nothing
about (not written by me) that manually does this change! Sounds a bit
ill advised to me

Thanks for the help.
F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top