Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Password Textbox and Cookies

Password Textbox and Cookies

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsecurityhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pradhip
    wrote on last edited by
    #1

    Hi All , I am wondering if i'm missing something here. This appln is in ASP.NET and VB.NET I have a log in page in which the user has the option to allow cookies store and retrieve password. The cookie file gets written with the userid and password when he is in the page the first time and when he goes to the page the next time I am able to get the userid in the textbox in the form but not the password. However if i changed the password text box type from password to singleline then i am able to see both the userid and password. So..I am wondering if there is a workaround that i am missing or just not plain not possible to have any event to write it to a text box with password as its type for security reasons. Any help is greatly appreciated. Why have parking lots in Bars when Drunken Driving is a grave crime ?? :confused:

    D 1 Reply Last reply
    0
    • P Pradhip

      Hi All , I am wondering if i'm missing something here. This appln is in ASP.NET and VB.NET I have a log in page in which the user has the option to allow cookies store and retrieve password. The cookie file gets written with the userid and password when he is in the page the first time and when he goes to the page the next time I am able to get the userid in the textbox in the form but not the password. However if i changed the password text box type from password to singleline then i am able to see both the userid and password. So..I am wondering if there is a workaround that i am missing or just not plain not possible to have any event to write it to a text box with password as its type for security reasons. Any help is greatly appreciated. Why have parking lots in Bars when Drunken Driving is a grave crime ?? :confused:

      D Offline
      D Offline
      DFU23
      wrote on last edited by
      #2

      From what I have seen this is supposedly a security measure built in to ASP.NET when it finds a TextBox that is of the type "password" then it will not allow the value to be shown on the page. This can be a pain and supposedly there is a way around it ... Instead of doing:

      MyTextBox.Value = "password"

      Try:

      MyTextBox.Attributes.Add("value") = "password"

      Man, my syntax might be way off but that is the general idea ... and like I said, it supposedly works. Let me know :)

      Wally Atkins
      Newport News, VA, USA

      D 1 Reply Last reply
      0
      • D DFU23

        From what I have seen this is supposedly a security measure built in to ASP.NET when it finds a TextBox that is of the type "password" then it will not allow the value to be shown on the page. This can be a pain and supposedly there is a way around it ... Instead of doing:

        MyTextBox.Value = "password"

        Try:

        MyTextBox.Attributes.Add("value") = "password"

        Man, my syntax might be way off but that is the general idea ... and like I said, it supposedly works. Let me know :)

        Wally Atkins
        Newport News, VA, USA

        D Offline
        D Offline
        David Flores
        wrote on last edited by
        #3

        GREAT! I was just looking for a solution to the same problem. Thanks!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups