asp:TextBox

Discussion in 'ASP .Net Web Controls' started by foldface@yahoo.co.uk, Sep 27, 2005.

  1. Guest

    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
     
    , Sep 27, 2005
    #1
    1. Advertising

  2. Guest

    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
     
    , Sep 28, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. S. Justin Gengo
    Replies:
    0
    Views:
    580
    S. Justin Gengo
    Jul 16, 2003
  2. =?Utf-8?B?Q2hyaXM=?=
    Replies:
    3
    Views:
    13,925
    Peter Blum
    Mar 30, 2005
  3. Imran Aziz
    Replies:
    2
    Views:
    11,527
    Imran Aziz
    Sep 5, 2005
  4. ald
    Replies:
    3
    Views:
    197
    Axel Dahmen
    Dec 21, 2003
  5. ErwinP
    Replies:
    1
    Views:
    822
    ErwinP
    Aug 19, 2005
Loading...

Share This Page