password vs. text

Discussion in 'ASP .Net' started by Matthew C, Jun 27, 2003.

  1. Matthew C

    Matthew C Guest

    Hello,

    I have a single line input box and when it is set to "password" the value in
    it dissapears during form submits, but persists when simply set to "text".

    How do I set and or persist the PASSWORD field?

    thanks for listening.

    M
     
    Matthew C, Jun 27, 2003
    #1
    1. Advertisements

  2. My understanding it's how browsers work.
    They do not allow to set value for <input type="password">


    George.

    "Matthew C" <> wrote in message
    news:X_0La.67849$...
    > Hello,
    >
    > I have a single line input box and when it is set to "password" the value

    in
    > it dissapears during form submits, but persists when simply set to "text".
    >
    > How do I set and or persist the PASSWORD field?
    >
    > thanks for listening.
    >
    > M
    >
    >
    >
     
    George Ter-Saakov, Jun 27, 2003
    #2
    1. Advertisements

  3. Hi

    This is one way
    <input name="sPassword" ID="sPassword" type="password"
    value="<%=strPassword%>">

    You could also send a script(JavaScript) to the client to set the password

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Internet Client & Controls MVP
    ==============================
    "Matthew C" <> wrote in message
    news:X_0La.67849$...
    > Hello,
    >
    > I have a single line input box and when it is set to "password" the value

    in
    > it dissapears during form submits, but persists when simply set to "text".
    >
    > How do I set and or persist the PASSWORD field?
    >
    > thanks for listening.
    >
    > M
    >
    >
    >
     
    Vidar Petursson, Jun 27, 2003
    #3
  4. Hi

    No password element is NOT read only
    example
    <input type="password" onfocus="this.value='yadda'">

    but input type="file" is read only

    --
    Best Regards
    Vidar Petursson
    ==============================
    Microsoft Internet Client & Controls MVP
    ==============================
    "George Ter-Saakov" <> wrote in message
    news:u$...
    > My understanding it's how browsers work.
    > They do not allow to set value for <input type="password">
    >
    >
    > George.
    >
    > "Matthew C" <> wrote in message
    > news:X_0La.67849$...
    > > Hello,
    > >
    > > I have a single line input box and when it is set to "password" the

    value
    > in
    > > it dissapears during form submits, but persists when simply set to

    "text".
    > >
    > > How do I set and or persist the PASSWORD field?
    > >
    > > thanks for listening.
    > >
    > > M
    > >
    > >
    > >

    >
    >
     
    Vidar Petursson, Jun 27, 2003
    #4
    1. Advertisements

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. Leon Shaw

    Password TextBox VeiwState Text

    Leon Shaw, Jul 30, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    529
    Leon Shaw
    Jul 30, 2003
  2. Ian Walsh

    Setting the text of a password box

    Ian Walsh, Aug 22, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    560
    Steve C. Orr, MCSD
    Aug 22, 2003
  3. Jason

    password text boxes and viewstate

    Jason, Feb 13, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,268
    bruce barker
    Feb 13, 2004
  4. feng
    Replies:
    4
    Views:
    1,533
  5. Luqman
    Replies:
    5
    Views:
    1,075
  6. AAaron123
    Replies:
    2
    Views:
    2,984
    AAaron123
    Jan 16, 2009
  7. AAaron123
    Replies:
    1
    Views:
    1,639
    Oriane
    Jan 16, 2009
  8. leo
    Replies:
    1
    Views:
    482
    Bob Lehmann
    Dec 5, 2005
Loading...