Using ASP.NET, the default textbox in password mode (
TextMode
="Password") has the following restrictions:- The password can not be set (e.g.,
tbPassword.Text = "ThePassword
";
) - The password is not restored after a postback
Both restrictions make perfect sense for security reasons. Nonetheless, sometimes the above behaviour is not wanted (especially during development).
The new
PasswordTextBox
control is an extension of the standard ASP.NET TextBox
and makes a password textbox behave like a regular textbox.
No comments:
Post a Comment