password vs. text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matthew C

    password vs. text

    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

    #2
    Re: password vs. text

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


    George.

    "Matthew C" <dotnet@noveris .com> wrote in message
    news:X_0La.6784 9$Io.6356851@ne wsread2.prod.it d.earthlink.net ...[color=blue]
    > Hello,
    >
    > I have a single line input box and when it is set to "password" the value[/color]
    in[color=blue]
    > 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
    >
    >
    >[/color]


    Comment

    • Vidar Petursson

      #3
      Re: password vs. text

      Hi

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

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

      --
      Best Regards
      Vidar Petursson
      =============== ===============
      Microsoft Internet Client & Controls MVP
      =============== ===============
      "Matthew C" <dotnet@noveris .com> wrote in message
      news:X_0La.6784 9$Io.6356851@ne wsread2.prod.it d.earthlink.net ...[color=blue]
      > Hello,
      >
      > I have a single line input box and when it is set to "password" the value[/color]
      in[color=blue]
      > 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
      >
      >
      >[/color]


      Comment

      • Vidar Petursson

        #4
        Re: password vs. text

        Hi

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

        but input type="file" is read only

        --
        Best Regards
        Vidar Petursson
        =============== ===============
        Microsoft Internet Client & Controls MVP
        =============== ===============
        "George Ter-Saakov" <we@hotmail.com > wrote in message
        news:u$LzeOOPDH A.452@TK2MSFTNG P11.phx.gbl...[color=blue]
        > My understanding it's how browsers work.
        > They do not allow to set value for <input type="password" >
        >
        >
        > George.
        >
        > "Matthew C" <dotnet@noveris .com> wrote in message
        > news:X_0La.6784 9$Io.6356851@ne wsread2.prod.it d.earthlink.net ...[color=green]
        > > Hello,
        > >
        > > I have a single line input box and when it is set to "password" the[/color][/color]
        value[color=blue]
        > in[color=green]
        > > it dissapears during form submits, but persists when simply set to[/color][/color]
        "text".[color=blue][color=green]
        > >
        > > How do I set and or persist the PASSWORD field?
        > >
        > > thanks for listening.
        > >
        > > M
        > >
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...