Provides Mobile Control a user interface(UI) that enables users to change their website password

Namespace: FiftyOne.Framework.Mobile.Controls
Assembly: FiftyOne.Framework (in FiftyOne.Framework.dll) Version: 2.0.2.1 (2.0.2.1)

Syntax

C#
[DefaultEventAttribute("ChangePassword")]
[BindableAttribute(false)]
[ToolboxBitmapAttribute("FiftyOne.Framework.Mobile.Controls.ChangePassword")]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class ChangePassword : ChangePassword, 
	IStyle, IUrlResolutionService, ICssIncludeGroup
Visual Basic
<DefaultEventAttribute("ChangePassword")> _
<BindableAttribute(False)> _
<ToolboxBitmapAttribute("FiftyOne.Framework.Mobile.Controls.ChangePassword")> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class ChangePassword _
	Inherits ChangePassword _
	Implements IStyle, IUrlResolutionService, ICssIncludeGroup
Visual C++
[DefaultEventAttribute(L"ChangePassword")]
[BindableAttribute(false)]
[ToolboxBitmapAttribute(L"FiftyOne.Framework.Mobile.Controls.ChangePassword")]
[AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)]
public ref class ChangePassword : public ChangePassword, 
	IStyle, IUrlResolutionService, ICssIncludeGroup

Examples

The following code example shows how to set the NewPasswordRegularExpression property to define a regular expression that checks passwords to ensure that they meet the following criteria:

  • Are greater than six characters.
  • Contain at least one digit.
  • Contain at least one special (non-alphanumeric) character.
The password requirements contained in the PasswordHintText property are displayed to the user. If the password entered by the user does not meet the requirements of the NewPasswordRegularExpression property, the text contained in the NewPasswordRegularExpressionErrorMessage property is displayed to the user. If a new password is not entered, the text contained in the NewPasswordRequiredErrorMessage property is displayed to the user.

CopyXML
<mob:ChangePassword id="ChangePassword1" runat="server"
    PasswordHintText="Please enter a password at least 7 characters long, containing a number and one special character."
    NewPasswordRegularExpression='@\"(?=.{7,})(?=(.*\d){1,})(?=(.*\W){1,})' 
    NewPasswordRegularExpressionErrorMessage="Your password must be at least 7 characters long, and contain at least one number and one special character." >
</mob:ChangePassword>

Inheritance Hierarchy

See Also