Provides Mobile Control a user interface(UI) that enables users to change their website password
Namespace: FiftyOne.Framework.Mobile.ControlsAssembly: 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.
<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
System..::..Object
System.Web.UI..::..Control
System.Web.UI.WebControls..::..WebControl
System.Web.UI.WebControls..::..CompositeControl
System.Web.UI.WebControls..::..ChangePassword
FiftyOne.Framework.Mobile.Controls..::..ChangePassword
System.Web.UI..::..Control
System.Web.UI.WebControls..::..WebControl
System.Web.UI.WebControls..::..CompositeControl
System.Web.UI.WebControls..::..ChangePassword
FiftyOne.Framework.Mobile.Controls..::..ChangePassword