Password Textbox and Cookies
-
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:
-
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:
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 -
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, USAGREAT! I was just looking for a solution to the same problem. Thanks!