ChangePassword.ConfirmNewPassword Property
Assembly: System.Web (in system.web.dll)
'Declaration <ThemeableAttribute(False)> _ Public Overridable ReadOnly Property ConfirmNewPassword As String 'Usage Dim instance As ChangePassword Dim value As String value = instance.ConfirmNewPassword
/** @property */ public String get_ConfirmNewPassword ()
public function get ConfirmNewPassword () : String
Not applicable.
Property Value
The duplicate new password string entered by the user.The ConfirmNewPassword property contains the duplicate new password entered by the user.
You can use the NewPasswordRegularExpression property to define the requirements for the new password. This regular expression is used to enforce password rules on the client side.
The NewPasswordRegularExpression is not related to the password enforcement that can be configured at the data store level and enforced on the server side. The password must meet the minimum requirements set by the membership provider in the MinRequiredPasswordLength, MinRequiredNonAlphanumericCharacters, and PasswordStrengthRegularExpression properties. If the password does not meet these requirements, the ChangePasswordError event is raised.
Security Note: |
|---|
| Transmitting passwords over HTTP is a potential security threat. HTTP transmissions can be viewed or compromised by malicious users. To improve security when using login controls, you should use the HTTPS protocol with secure sockets layer (SSL) encryption to ensure that the user's password cannot be read during postback. For more information, see Securing Login Controls. |
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and Introduction to ASP.NET Themes.
Reference
ChangePassword ClassChangePassword Members
System.Web.UI.WebControls Namespace
NewPassword
NewPasswordRegularExpression
Other Resources
ASP.NET Login Controls OverviewCustomizing the Appearance of ASP.NET Login Controls
Web Server Controls Templates (Visual Studio)
How to: Display Information to Anonymous and Logged-In Users
Web Site Administration Tool Security Tab
Securing Login Controls
Basic Security Practices for Web Applications
Securing Membership
Security Note: