Preserver password textbox value even after postback
-
I have two textoxes in my form as Password and Retype Password. There is a postback after this,. The issue is whenever there is a postback, the two textboxes loses value. Is there anyway I can preserve the value and show the same after postback? please help.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
-
I have two textoxes in my form as Password and Retype Password. There is a postback after this,. The issue is whenever there is a postback, the two textboxes loses value. Is there anyway I can preserve the value and show the same after postback? please help.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
Why are doing postback aftar Retype Password? because I think its not possible when your textbox mode is set to password.
Cheers!! Brij Check My Latest Article
-
Why are doing postback aftar Retype Password? because I think its not possible when your textbox mode is set to password.
Cheers!! Brij Check My Latest Article
It is possible. Probably it would be help somebody. You can use like this: PasswordTextBox.Attributes.Add("value", PasswordTextBox.Text.Trim()); I got this when I googled for some time and got from forums.asp.net This will preserve the value even after postback. But I am not sure whether this will invalidate any other action or causes any issue.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
-
It is possible. Probably it would be help somebody. You can use like this: PasswordTextBox.Attributes.Add("value", PasswordTextBox.Text.Trim()); I got this when I googled for some time and got from forums.asp.net This will preserve the value even after postback. But I am not sure whether this will invalidate any other action or causes any issue.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
Thanks for sharing it.Please also share any issue you find. :)
Cheers!! Brij Check My Latest Article
-
It is possible. Probably it would be help somebody. You can use like this: PasswordTextBox.Attributes.Add("value", PasswordTextBox.Text.Trim()); I got this when I googled for some time and got from forums.asp.net This will preserve the value even after postback. But I am not sure whether this will invalidate any other action or causes any issue.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
There is a good reason why the password doesn't get sent back in the postback so I would be wary of setting the value manually. Basically, sending the password back in the postback is a security right, if you right click on your page and view source you can see the password value in plain text, this is obviously not a good thing. If that doesn't bother you, or your organisation, fair enough but personally I wouldn't want my password being sent back in plain text.
-
There is a good reason why the password doesn't get sent back in the postback so I would be wary of setting the value manually. Basically, sending the password back in the postback is a security right, if you right click on your page and view source you can see the password value in plain text, this is obviously not a good thing. If that doesn't bother you, or your organisation, fair enough but personally I wouldn't want my password being sent back in plain text.
I completely agree with you. This is because I didn't implement the functionality initially. But client requires the same and doesn't want to type again and again since the page have a couple of postbacks.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
-
I completely agree with you. This is because I didn't implement the functionality initially. But client requires the same and doesn't want to type again and again since the page have a couple of postbacks.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
Can't u give something Like "remember me " option ??? and store pwd and username in a cookie ??
-
I have two textoxes in my form as Password and Retype Password. There is a postback after this,. The issue is whenever there is a postback, the two textboxes loses value. Is there anyway I can preserve the value and show the same after postback? please help.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.