Oddly sized sized password textbox

Discussion in 'ASP .Net' started by thechaosengine, Sep 15, 2005.

  1. Hi all,

    Can anyone tell me why, when I use an asp:textbox control with its text mode
    set to "password" the textbox appears to be a couple of characters shorter
    than all the others on the page? This is a problem when having a username
    and password combination with one above the other as the difference in width
    is quite noticeble.

    Can anyone tell me how to get around this. I'm sure it must be something
    silly.

    I'm using IE 6 btw along with Visual Studio 2005 but I'm sure this problem
    occurs in other browsers and in ASP.net 1.1 as well

    Thanks to anyone who can advise

    Kindest Regards

    TC
     
    thechaosengine, Sep 15, 2005
    #1
    1. Advertising

  2. thechaosengine

    David Hearn Guest

    Just set the width property on the textbox to match the other boxes on your
    form.

    "thechaosengine" <None> wrote in message
    news:...
    >
    > Hi all,
    >
    > Can anyone tell me why, when I use an asp:textbox control with its text
    > mode set to "password" the textbox appears to be a couple of characters
    > shorter than all the others on the page? This is a problem when having a
    > username and password combination with one above the other as the
    > difference in width is quite noticeble.
    >
    > Can anyone tell me how to get around this. I'm sure it must be something
    > silly.
    >
    > I'm using IE 6 btw along with Visual Studio 2005 but I'm sure this problem
    > occurs in other browsers and in ASP.net 1.1 as well
    >
    > Thanks to anyone who can advise
    >
    > Kindest Regards
    >
    > TCE
    >
    >
     
    David Hearn, Sep 15, 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. Craig Buchanan

    parent child dropdownlists acting oddly

    Craig Buchanan, Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    466
    Craig Buchanan
    Jun 27, 2003
  2. jodasi
    Replies:
    0
    Views:
    388
    jodasi
    Nov 28, 2005
  3. Jim Higson
    Replies:
    1
    Views:
    518
    Jim Higson
    Sep 21, 2004
  4. AAaron123
    Replies:
    2
    Views:
    2,197
    AAaron123
    Jan 16, 2009
  5. AAaron123
    Replies:
    1
    Views:
    1,353
    Oriane
    Jan 16, 2009
Loading...

Share This Page