ChangePassword Class

 

Provides a user interface that enable users to change their Web site password.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

System::Object
  System.Web.UI::Control
    System.Web.UI.WebControls::WebControl
      System.Web.UI.WebControls::CompositeControl
        System.Web.UI.WebControls::ChangePassword

[BindableAttribute(false)]
public ref class ChangePassword : CompositeControl, INamingContainer

NameDescription
System_CAPS_pubmethodChangePassword()

Initializes a new instance of the ChangePassword class.

NameDescription
System_CAPS_pubpropertyAccessKey

Gets or sets the access key that allows you to quickly navigate to the Web server control.(Inherited from WebControl.)

System_CAPS_protpropertyAdapter

Gets the browser-specific adapter for the control.(Inherited from Control.)

System_CAPS_pubpropertyAppRelativeTemplateSourceDirectory

Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control.(Inherited from Control.)

System_CAPS_pubpropertyAttributes

Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.(Inherited from WebControl.)

System_CAPS_pubpropertyBackColor

Gets or sets the background color of the Web server control.(Inherited from WebControl.)

System_CAPS_pubpropertyBindingContainer

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the control that contains this control's data binding.(Inherited from Control.)

System_CAPS_pubpropertyBorderColor

Gets or sets the border color of the Web control.(Inherited from WebControl.)

System_CAPS_pubpropertyBorderPadding

Gets or sets the amount of padding, in pixels, inside the border and the designated area for the ChangePassword control.

System_CAPS_pubpropertyBorderStyle

Gets or sets the border style of the Web server control.(Inherited from WebControl.)

System_CAPS_pubpropertyBorderWidth

Gets or sets the border width of the Web server control.(Inherited from WebControl.)

System_CAPS_pubpropertyCancelButtonImageUrl

Gets or sets the URL of an image to display with the Cancel button, if the Cancel button is configured by the CancelButtonType property to be an image button.

System_CAPS_pubpropertyCancelButtonStyle

Gets a reference to a collection of Style properties that define the appearance of the Cancel button on the ChangePassword control.

System_CAPS_pubpropertyCancelButtonText

Gets or sets the text displayed on the Cancel button.

System_CAPS_pubpropertyCancelButtonType

Gets or sets the type of button to use for the Cancel button when rendering the ChangePassword control.

System_CAPS_pubpropertyCancelDestinationPageUrl

Gets or sets the URL of the page that the user is shown after clicking the Cancel button in the ChangePassword control.

System_CAPS_pubpropertyChangePasswordButtonImageUrl

Gets or sets the URL of an image displayed next to the Change Password button on the ChangePassword control if the Change Password button is configured by the ChangePasswordButtonType property to be an image button.

System_CAPS_pubpropertyChangePasswordButtonStyle

Gets a reference to a collection of Style properties that define the appearance of the Change Password button on the ChangePassword control.

System_CAPS_pubpropertyChangePasswordButtonText

Gets or sets the text displayed on the Change Password button.

System_CAPS_pubpropertyChangePasswordButtonType

Gets or sets the type of button to use when rendering the Change Password button of the ChangePassword control.

System_CAPS_pubpropertyChangePasswordFailureText

Gets or sets the message that is shown when the user's password is not changed.

System_CAPS_pubpropertyChangePasswordTemplate

Gets or sets the ITemplate object used to display the Change Password view of the ChangePassword control.

System_CAPS_pubpropertyChangePasswordTemplateContainer

Gets the container that a ChangePassword control uses to create an instance of the ChangePasswordTemplate template. This provides programmatic access to child controls.

System_CAPS_pubpropertyChangePasswordTitleText

Gets or sets the text displayed at the top of the ChangePassword control in Change Password view.

System_CAPS_protpropertyChildControlsCreated

Gets a value that indicates whether the server control's child controls have been created.(Inherited from Control.)

System_CAPS_pubpropertyClientID

Gets the control ID for HTML markup that is generated by ASP.NET.(Inherited from Control.)

System_CAPS_pubpropertyClientIDMode

Gets or sets the algorithm that is used to generate the value of the ClientID property.(Inherited from Control.)

System_CAPS_protpropertyClientIDSeparator

Gets a character value representing the separator character used in the ClientID property.(Inherited from Control.)

System_CAPS_pubpropertyConfirmNewPassword

Gets the duplicate password entered by the user.

System_CAPS_pubpropertyConfirmNewPasswordLabelText

Gets or sets the label text for the ConfirmNewPassword text box.

System_CAPS_pubpropertyConfirmPasswordCompareErrorMessage

Gets or sets the message that is displayed when the new password and the duplicate password entered by the user are not identical.

System_CAPS_pubpropertyConfirmPasswordRequiredErrorMessage

Gets or sets the error message that is displayed when the Confirm New Password text box is left empty.

System_CAPS_protpropertyContext

Gets the HttpContext object associated with the server control for the current Web request.(Inherited from Control.)

System_CAPS_pubpropertyContinueButtonImageUrl

Gets or sets the URL of an image to use for the Continue button on the Success view of the ChangePassword control if the Continue button is configured by the ContinueButtonType property to be an image button.

System_CAPS_pubpropertyContinueButtonStyle

Gets a reference to a collection of Style properties that define the appearance of the Continue button on the Success view of the ChangePassword control.

System_CAPS_pubpropertyContinueButtonText

Gets or sets the text that is displayed on the Continue button on the Success view of the ChangePassword control.

System_CAPS_pubpropertyContinueButtonType

Gets or sets the type of button to use when rendering the Continue button for the ChangePassword control.

System_CAPS_pubpropertyContinueDestinationPageUrl

Gets or sets the URL of the page that the user will see after clicking the Continue button on the Success view.

System_CAPS_pubpropertyControls

Gets a ControlCollection object that represents the child controls in a CompositeControl.(Inherited from CompositeControl.)

System_CAPS_pubpropertyControlStyle

Gets the style of the Web server control. This property is used primarily by control developers.(Inherited from WebControl.)

System_CAPS_pubpropertyControlStyleCreated

Gets a value indicating whether a Style object has been created for the ControlStyle property. This property is primarily used by control developers.(Inherited from WebControl.)

System_CAPS_pubpropertyCreateUserIconUrl

Gets or sets the URL of an image to display next to the link to the Web page that contains a CreateUserWizard control for the Web site.

System_CAPS_pubpropertyCreateUserText

Gets or sets the text of the link to the Web page that contains a CreateUserWizard control for the Web site.

System_CAPS_pubpropertyCreateUserUrl

Gets or sets the URL of the Web page that contains a CreateUserWizard control for the Web site.

System_CAPS_pubpropertyCssClass

Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client.(Inherited from WebControl.)

System_CAPS_pubpropertyCurrentPassword

Gets the current password for the user.

System_CAPS_pubpropertyDataItemContainer

Gets a reference to the naming container if the naming container implements IDataItemContainer.(Inherited from Control.)

System_CAPS_pubpropertyDataKeysContainer

Gets a reference to the naming container if the naming container implements IDataKeysControl.(Inherited from Control.)

System_CAPS_protpropertyDesignMode

Gets a value indicating whether a control is being used on a design surface.(Inherited from Control.)

System_CAPS_pubpropertyDisplayUserName

Gets or sets a value indicating whether the ChangePassword control should display the UserName control and label.

System_CAPS_pubpropertyEditProfileIconUrl

Gets or sets the URL of an image to display next to the link to the user profile editing page for the Web site.

System_CAPS_pubpropertyEditProfileText

Gets or sets the text of the link to the user profile editing page for the Web site.

System_CAPS_pubpropertyEditProfileUrl

Gets or sets the URL of the user profile editing page for the Web site.

System_CAPS_pubpropertyEnabled

Gets or sets a value indicating whether the Web server control is enabled.(Inherited from WebControl.)

System_CAPS_pubpropertyEnableTheming

Gets or sets a value indicating whether themes apply to this control.(Inherited from WebControl.)

System_CAPS_pubpropertyEnableViewState

Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client.(Inherited from Control.)

System_CAPS_protpropertyEvents

Gets a list of event handler delegates for the control. This property is read-only.(Inherited from Control.)

System_CAPS_pubpropertyFailureTextStyle

Gets a reference to a collection of Style properties that define the appearance of error messages on the ChangePassword control.

System_CAPS_pubpropertyFont

Gets the font properties associated with the Web server control.(Inherited from WebControl.)

System_CAPS_pubpropertyForeColor

Gets or sets the foreground color (typically the color of the text) of the Web server control.(Inherited from WebControl.)

System_CAPS_pubpropertyHasAttributes

Gets a value indicating whether the control has attributes set.(Inherited from WebControl.)

System_CAPS_protpropertyHasChildViewState

Gets a value indicating whether the current server control's child controls have any saved view-state settings.(Inherited from Control.)

System_CAPS_pubpropertyHeight

Gets or sets the height of the Web server control.(Inherited from WebControl.)

System_CAPS_pubpropertyHelpPageIconUrl

Gets or sets the URL of an image to display next to the Change Password help page for the Web site.

System_CAPS_pubpropertyHelpPageText

Gets or sets the link text to the Change Password help page for the Web site.

System_CAPS_pubpropertyHelpPageUrl

Gets or sets the URL of the Change Password help page for the Web site.

System_CAPS_pubpropertyHyperLinkStyle

Gets a reference to a collection of Style properties that define the appearance of hyperlinks on the ChangePassword control.

System_CAPS_pubpropertyID

Gets or sets the programmatic identifier assigned to the server control.(Inherited from Control.)

System_CAPS_protpropertyIdSeparator

This API supports the product infrastructure and is not intended to be used directly from your code. Gets the character used to separate control identifiers.(Inherited from Control.)

System_CAPS_pubpropertyInstructionText

Gets or sets informational text that appears on the ChangePassword control between the ChangePasswordTitleText and the input boxes.

System_CAPS_pubpropertyInstructionTextStyle

Gets a reference to a collection of Style properties that define the appearance of the instructional text on the ChangePassword control.

System_CAPS_protpropertyIsChildControlStateCleared

Gets a value indicating whether controls contained within this control have control state.(Inherited from Control.)

System_CAPS_protpropertyIsEnabled

Gets a value indicating whether the control is enabled.(Inherited from WebControl.)

System_CAPS_protpropertyIsTrackingViewState

Gets a value that indicates whether the server control is saving changes to its view state.(Inherited from Control.)

System_CAPS_protpropertyIsViewStateEnabled

Gets a value indicating whether view state is enabled for this control.(Inherited from Control.)

System_CAPS_pubpropertyLabelStyle

Gets a reference to a collection of Style objects that define the appearance of text box labels on the ChangePassword control.

System_CAPS_protpropertyLoadViewStateByID

Gets a value indicating whether the control participates in loading its view state by ID instead of index. (Inherited from Control.)

System_CAPS_pubpropertyMailDefinition

Gets a reference to a collection of properties that define the e-mail message that is sent to users after they have changed their password.

System_CAPS_pubpropertyMembershipProvider

Gets or sets the membership provider that is used to manage member information.

System_CAPS_pubpropertyNamingContainer

Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control::ID property value.(Inherited from Control.)

System_CAPS_pubpropertyNewPassword

Gets the new password entered by the user.

System_CAPS_pubpropertyNewPasswordLabelText

Gets or sets the label text for the New Password text box.

System_CAPS_pubpropertyNewPasswordRegularExpression

Gets or sets the regular expression that is used to validate the password provided by the user.

System_CAPS_pubpropertyNewPasswordRegularExpressionErrorMessage

Gets or sets the error message that is shown when the password entered does not pass the regular expression criteria defined in the NewPasswordRegularExpression property.

System_CAPS_pubpropertyNewPasswordRequiredErrorMessage

Gets or sets the error message that is displayed when the user leaves the New Password text box empty.

System_CAPS_pubpropertyPage

Gets a reference to the Page instance that contains the server control.(Inherited from Control.)

System_CAPS_pubpropertyParent

Gets a reference to the server control's parent control in the page control hierarchy.(Inherited from Control.)

System_CAPS_pubpropertyPasswordHintStyle

Gets a reference to a collection of Style properties that define the appearance of hint text that appears on the ChangePassword control.

System_CAPS_pubpropertyPasswordHintText

Gets or sets informational text about the requirements for creating a password for the Web site.

System_CAPS_pubpropertyPasswordLabelText

Gets or sets the label text for the Current Password text box.

System_CAPS_pubpropertyPasswordRecoveryIconUrl

Gets or sets the URL of an image to display next to a link to the Web page that contains the PasswordRecovery control.

System_CAPS_pubpropertyPasswordRecoveryText

Gets or sets the text of the link to the Web page that contains the PasswordRecovery control.

System_CAPS_pubpropertyPasswordRecoveryUrl

Gets or sets the URL of the Web page that contains the PasswordRecovery control.

System_CAPS_pubpropertyPasswordRequiredErrorMessage

Gets or sets the error message that is displayed when the user leaves the Current Password text box empty.

System_CAPS_pubpropertyRenderingCompatibility

Gets a value that specifies the ASP.NET version that rendered HTML will be compatible with.(Inherited from Control.)

System_CAPS_pubpropertyRenderOuterTable

Gets or sets a value that indicates whether the control encloses rendered HTML in a table element in order to apply inline styles.

System_CAPS_pubpropertySite

Gets information about the container that hosts the current control when rendered on a design surface.(Inherited from Control.)

System_CAPS_pubpropertySkinID

Gets or sets the skin to apply to the control.(Inherited from WebControl.)

System_CAPS_pubpropertyStyle

Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control.(Inherited from WebControl.)

System_CAPS_pubpropertySuccessPageUrl

Gets or sets the URL of the page that is shown to users after they have changed their password successfully.

System_CAPS_pubpropertySuccessTemplate

Gets or sets the ITemplate object that is used to display the Success and Change Password views of the ChangePassword control.

System_CAPS_pubpropertySuccessTemplateContainer

Gets the container that a ChangePassword control used to create an instance of the SuccessTemplate template. This provides programmatic access to child controls.

System_CAPS_pubpropertySuccessText

Gets or sets the text that is displayed on the Success view between the SuccessTitleText and the Continue button.

System_CAPS_pubpropertySuccessTextStyle

Gets a collection of Style properties that define the appearance of text on the Success view.

System_CAPS_pubpropertySuccessTitleText

Gets or sets the title of the Success view.

System_CAPS_pubpropertySupportsDisabledAttribute

Gets a value that indicates whether the control should set the disabled attribute of the rendered HTML element to "disabled" when the control's IsEnabled property is false.(Inherited from CompositeControl.)

System_CAPS_pubpropertyTabIndex

Gets or sets the tab index of the Web server control.(Inherited from WebControl.)

System_CAPS_protpropertyTagKey

Gets the HtmlTextWriterTag value that corresponds to a ChangePassword control. This property is used primarily by control developers.(Overrides WebControl::TagKey.)

System_CAPS_protpropertyTagName

Gets the name of the control tag. This property is used primarily by control developers.(Inherited from WebControl.)

System_CAPS_pubpropertyTemplateControl

Gets or sets a reference to the template that contains this control. (Inherited from Control.)

System_CAPS_pubpropertyTemplateSourceDirectory

Gets the virtual directory of the Page or UserControl that contains the current server control.(Inherited from Control.)

System_CAPS_pubpropertyTextBoxStyle

Gets a reference to a collection of Style properties that define the appearance of text box controls on the ChangePassword control.

System_CAPS_pubpropertyTitleTextStyle

Gets a reference to a collection of Style properties that define the appearance of titles on the ChangePassword control.

System_CAPS_pubpropertyToolTip

Gets or sets the text displayed when the mouse pointer hovers over the Web server control.(Inherited from WebControl.)

System_CAPS_pubpropertyUniqueID

Gets the unique, hierarchically qualified identifier for the server control.(Inherited from Control.)

System_CAPS_pubpropertyUserName

Gets or sets the Web site user name for which to change the password.

System_CAPS_pubpropertyUserNameLabelText

Gets or sets the label for the User Name text box.

System_CAPS_pubpropertyUserNameRequiredErrorMessage

Gets or sets the error message that is displayed when the user leaves the User Name text box empty.

System_CAPS_pubpropertyValidateRequestMode

Gets or sets a value that indicates whether the control checks client input from the browser for potentially dangerous values.(Inherited from Control.)

System_CAPS_pubpropertyValidatorTextStyle

Gets a reference to a collection of Style properties that define the appearance of error messages that are associated with any input validation used by the ChangePassword control.

System_CAPS_protpropertyViewState

Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page.(Inherited from Control.)

System_CAPS_protpropertyViewStateIgnoresCase

Gets a value that indicates whether the StateBag object is case-insensitive.(Inherited from Control.)

System_CAPS_pubpropertyViewStateMode

Gets or sets the view-state mode of this control.(Inherited from Control.)

System_CAPS_pubpropertyVisible

Gets or sets a value that indicates whether a server control is rendered as UI on the page.(Inherited from Control.)

System_CAPS_pubpropertyWidth

Gets or sets the width of the Web server control.(Inherited from WebControl.)

NameDescription
System_CAPS_protmethodAddAttributesToRender(HtmlTextWriter^)

Adds HTML attributes and styles that need to be rendered to the specified HtmlTextWriterTag. This method is used primarily by control developers.(Inherited from WebControl.)

System_CAPS_protmethodAddedControl(Control^, Int32)

Called after a child control is added to the Controls collection of the Control object.(Inherited from Control.)

System_CAPS_protmethodAddParsedSubObject(Object^)

Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control's ControlCollection object.(Inherited from Control.)

System_CAPS_pubmethodApplyStyle(Style^)

Copies any nonblank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.(Inherited from WebControl.)

System_CAPS_pubmethodApplyStyleSheetSkin(Page^)

Applies the style properties defined in the page style sheet to the control.(Inherited from Control.)

System_CAPS_protmethodBeginRenderTracing(TextWriter^, Object^)

Begins design-time tracing of rendering data.(Inherited from Control.)

System_CAPS_protmethodBuildProfileTree(String^, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Gathers information about the server control and delivers it to the Trace property to be displayed when tracing is enabled for the page.(Inherited from Control.)

System_CAPS_protmethodClearCachedClientID()

This API supports the product infrastructure and is not intended to be used directly from your code. Sets the cached ClientID value to null.(Inherited from Control.)

System_CAPS_protmethodClearChildControlState()

Deletes the control-state information for the server control's child controls. (Inherited from Control.)

System_CAPS_protmethodClearChildState()

Deletes the view-state and control-state information for all the server control's child controls.(Inherited from Control.)

System_CAPS_protmethodClearChildViewState()

Deletes the view-state information for all the server control's child controls.(Inherited from Control.)

System_CAPS_protmethodClearEffectiveClientIDMode()

This API supports the product infrastructure and is not intended to be used directly from your code. Sets the ClientIDMode property of the current control instance and of any child controls to Inherit.(Inherited from Control.)

System_CAPS_pubmethodCopyBaseAttributes(WebControl^)

Copies the properties not encapsulated by the Style object from the specified Web server control to the Web server control that this method is called from. This method is used primarily by control developers.(Inherited from WebControl.)

System_CAPS_protmethodCreateChildControls()

Creates the individual controls that make up the ChangePassword control in preparation for posting back or rendering.(Overrides Control::CreateChildControls().)

System_CAPS_protmethodCreateControlCollection()

Creates a new ControlCollection object to hold the child controls (both literal and server) of the server control.(Inherited from Control.)

System_CAPS_protmethodCreateControlStyle()

Creates the style object that is used internally by the WebControl class to implement all style related properties. This method is used primarily by control developers.(Inherited from WebControl.)

System_CAPS_pubmethodDataBind()

Binds a data source to the CompositeControl and all its child controls.(Inherited from CompositeControl.)

System_CAPS_protmethodDataBind(Boolean)

Binds a data source to the invoked server control and all its child controls with an option to raise the DataBinding event. (Inherited from Control.)

System_CAPS_protmethodDataBindChildren()

Binds a data source to the server control's child controls.(Inherited from Control.)

System_CAPS_pubmethodDispose()

Enables a server control to perform final clean up before it is released from memory.(Inherited from Control.)

System_CAPS_protmethodEndRenderTracing(TextWriter^, Object^)

Ends design-time tracing of rendering data.(Inherited from Control.)

System_CAPS_protmethodEnsureChildControls()

Determines whether the server control contains child controls. If it does not, it creates child controls.(Inherited from Control.)

System_CAPS_protmethodEnsureID()

Creates an identifier for controls that do not have an identifier assigned.(Inherited from Control.)

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodFindControl(String^)

Searches the current naming container for a server control with the specified id parameter.(Inherited from Control.)

System_CAPS_protmethodFindControl(String^, Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Searches the current naming container for a server control with the specified id and an integer, specified in the pathOffset parameter, which aids in the search. You should not override this version of the FindControl method.(Inherited from Control.)

System_CAPS_pubmethodFocus()

Sets input focus to a control.(Inherited from Control.)

System_CAPS_protmethodGetDesignModeState()

This API supports the product infrastructure and is not intended to be used directly from your code. Gets design-time data for a control.(Inherited from Control.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetRouteUrl(Object^)

Gets the URL that corresponds to a set of route parameters.(Inherited from Control.)

System_CAPS_pubmethodGetRouteUrl(RouteValueDictionary^)

Gets the URL that corresponds to a set of route parameters.(Inherited from Control.)

System_CAPS_pubmethodGetRouteUrl(String^, Object^)

Gets the URL that corresponds to a set of route parameters and a route name.(Inherited from Control.)

System_CAPS_pubmethodGetRouteUrl(String^, RouteValueDictionary^)

Gets the URL that corresponds to a set of route parameters and a route name.(Inherited from Control.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetUniqueIDRelativeTo(Control^)

Returns the prefixed portion of the UniqueID property of the specified control.(Inherited from Control.)

System_CAPS_pubmethodHasControls()

Determines if the server control contains any child controls.(Inherited from Control.)

System_CAPS_protmethodHasEvents()

Returns a value indicating whether events are registered for the control or any child controls.(Inherited from Control.)

System_CAPS_protmethodIsLiteralContent()

This API supports the product infrastructure and is not intended to be used directly from your code. Determines if the server control holds only literal content.(Inherited from Control.)

System_CAPS_protmethodLoadControlState(Object^)

Restores control state information from a previous page request that was saved by the SaveControlState method.(Overrides Control::LoadControlState(Object^).)

System_CAPS_protmethodLoadViewState(Object^)

Restores view state information from a previous page request that was saved by the SaveViewState method.(Overrides WebControl::LoadViewState(Object^).)

System_CAPS_protmethodMapPathSecure(String^)

Retrieves the physical path that a virtual path, either absolute or relative, maps to.(Inherited from Control.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodMergeStyle(Style^)

Copies any nonblank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is used primarily by control developers.(Inherited from WebControl.)

System_CAPS_protmethodOnBubbleEvent(Object^, EventArgs^)

Determines whether the event for the ChangePassword control is passed up the Web server control hierarchy for the page.(Overrides Control::OnBubbleEvent(Object^, EventArgs^).)

System_CAPS_protmethodOnCancelButtonClick(EventArgs^)

Raises the CancelButtonClick event when a user clicks the Cancel button.

System_CAPS_protmethodOnChangedPassword(EventArgs^)

Raises the ChangedPassword event after the password is changed.

System_CAPS_protmethodOnChangePasswordError(EventArgs^)

Raises the ChangePasswordError event when the user's password is not changed.

System_CAPS_protmethodOnChangingPassword(LoginCancelEventArgs^)

Raises the ChangingPassword event before the user's password is changed by the membership provider.

System_CAPS_protmethodOnContinueButtonClick(EventArgs^)

Raises the ContinueButtonClick event when a user clicks the Continue button.

System_CAPS_protmethodOnDataBinding(EventArgs^)

Raises the DataBinding event.(Inherited from Control.)

System_CAPS_protmethodOnInit(EventArgs^)

Raises the Init event for the ChangePassword control to allow the control to register itself with the page.(Overrides Control::OnInit(EventArgs^).)

System_CAPS_protmethodOnLoad(EventArgs^)

Raises the Load event.(Inherited from Control.)

System_CAPS_protmethodOnPreRender(EventArgs^)

Raises the PreRender event.(Overrides Control::OnPreRender(EventArgs^).)

System_CAPS_protmethodOnSendingMail(MailMessageEventArgs^)

Raises the SendingMail event before an e-mail message is sent to the SMTP server for processing. The SMTP server then sends the e-mail message to the user.

System_CAPS_protmethodOnSendMailError(SendMailErrorEventArgs^)

Raises the SendMailError event when an e-mail message cannot be sent to the user.

System_CAPS_protmethodOnUnload(EventArgs^)

Raises the Unload event.(Inherited from Control.)

System_CAPS_protmethodOpenFile(String^)

Gets a Stream used to read a file.(Inherited from Control.)

System_CAPS_protmethodRaiseBubbleEvent(Object^, EventArgs^)

Assigns any sources of the event and its information to the control's parent.(Inherited from Control.)

System_CAPS_protmethodRecreateChildControls()

Recreates the child controls in a control derived from CompositeControl. (Inherited from CompositeControl.)

System_CAPS_protmethodRemovedControl(Control^)

Called after a child control is removed from the Controls collection of the Control object.(Inherited from Control.)

System_CAPS_protmethodRender(HtmlTextWriter^)

This API supports the product infrastructure and is not intended to be used directly from your code. Writes the ChangePassword control content to the specified HtmlTextWriter object, for display on the client.(Overrides CompositeControl::Render(HtmlTextWriter^).)

System_CAPS_pubmethodRenderBeginTag(HtmlTextWriter^)

Renders the HTML opening tag of the control to the specified writer. This method is used primarily by control developers.(Inherited from WebControl.)

System_CAPS_protmethodRenderChildren(HtmlTextWriter^)

Outputs the content of a server control's children to a provided HtmlTextWriter object, which writes the content to be rendered on the client.(Inherited from Control.)

System_CAPS_protmethodRenderContents(HtmlTextWriter^)

Renders the contents of the control to the specified writer. This method is used primarily by control developers.(Inherited from WebControl.)

System_CAPS_pubmethodRenderControl(HtmlTextWriter^)

Outputs server control content to a provided HtmlTextWriter object and stores tracing information about the control if tracing is enabled.(Inherited from Control.)

System_CAPS_protmethodRenderControl(HtmlTextWriter^, ControlAdapter^)

Outputs server control content to a provided HtmlTextWriter object using a provided ControlAdapter object.(Inherited from Control.)

System_CAPS_pubmethodRenderEndTag(HtmlTextWriter^)

Renders the HTML closing tag of the control into the specified writer. This method is used primarily by control developers.(Inherited from WebControl.)

System_CAPS_protmethodResolveAdapter()

Gets the control adapter responsible for rendering the specified control.(Inherited from Control.)

System_CAPS_pubmethodResolveClientUrl(String^)

Gets a URL that can be used by the browser.(Inherited from Control.)

System_CAPS_pubmethodResolveUrl(String^)

Converts a URL into one that is usable on the requesting client.(Inherited from Control.)

System_CAPS_protmethodSaveControlState()

Saves any server control state changes that have occurred since the time the page was posted back to the server.(Overrides Control::SaveControlState().)

System_CAPS_protmethodSaveViewState()

Saves any server control view state changes that have occurred since the time the page was posted back to the server.(Overrides WebControl::SaveViewState().)

System_CAPS_protmethodSetDesignModeState(IDictionary^)

Sets design-time data for a control.(Overrides Control::SetDesignModeState(IDictionary^).)

System_CAPS_pubmethodSetRenderMethodDelegate(RenderMethod^)

This API supports the product infrastructure and is not intended to be used directly from your code. Assigns an event handler delegate to render the server control and its content into its parent control.(Inherited from Control.)

System_CAPS_pubmethodSetTraceData(Object^, Object^)

Sets trace data for design-time tracing of rendering data, using the trace data key and the trace data value.(Inherited from Control.)

System_CAPS_pubmethodSetTraceData(Object^, Object^, Object^)

Sets trace data for design-time tracing of rendering data, using the traced object, the trace data key, and the trace data value.(Inherited from Control.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodTrackViewState()

Causes tracking of view-state changes to the server control so that they can be stored in the server control's StateBag object. This object is accessible through the Control::ViewState property. (Overrides WebControl::TrackViewState().)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticCancelButtonCommandName

Represents the CommandName value of the Cancel button. This field is read-only.

System_CAPS_pubfieldSystem_CAPS_staticChangePasswordButtonCommandName

Represents the CommandName value of the Change Password button. This field is read-only.

System_CAPS_pubfieldSystem_CAPS_staticContinueButtonCommandName

Represents CommandName value of the Continue button. This field is read-only.

NameDescription
System_CAPS_pubeventCancelButtonClick

Occurs when the user clicks the Cancel button to cancel changing a password.

System_CAPS_pubeventChangedPassword

Occurs when the password is changed for a user account.

System_CAPS_pubeventChangePasswordError

Occurs when there is an error changing the password for the user account.

System_CAPS_pubeventChangingPassword

Occurs before the password for a user account is changed by the membership provider.

System_CAPS_pubeventContinueButtonClick

Raises the ContinueButtonClick event when the user clicks the Continue button.

System_CAPS_pubeventDataBinding

Occurs when the server control binds to a data source.(Inherited from Control.)

System_CAPS_pubeventDisposed

Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.(Inherited from Control.)

System_CAPS_pubeventInit

Occurs when the server control is initialized, which is the first step in its lifecycle.(Inherited from Control.)

System_CAPS_pubeventLoad

Occurs when the server control is loaded into the Page object.(Inherited from Control.)

System_CAPS_pubeventPreRender

Occurs after the Control object is loaded but prior to rendering.(Inherited from Control.)

System_CAPS_pubeventSendingMail

Occurs before the user is sent an e-mail confirmation that the password has been changed.

System_CAPS_pubeventSendMailError

Occurs when there is an SMTP error sending an e-mail message to the user.

System_CAPS_pubeventUnload

Occurs when the server control is unloaded from memory.(Inherited from Control.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIAttributeAccessor::GetAttribute(String^)

This API supports the product infrastructure and is not intended to be used directly from your code. Gets an attribute of the Web control with the specified name.(Inherited from WebControl.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIAttributeAccessor::SetAttribute(String^, String^)

Sets an attribute of the Web control to the specified name and value.(Inherited from WebControl.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIControlDesignerAccessor::GetDesignModeState()

For a description of this member, see IControlDesignerAccessor::GetDesignModeState.(Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIControlDesignerAccessor::SetDesignModeState(IDictionary^)

For a description of this member, see IControlDesignerAccessor::SetDesignModeState. (Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIControlDesignerAccessor::SetOwnerControl(Control^)

This API supports the product infrastructure and is not intended to be used directly from your code. For a description of this member, see IControlDesignerAccessor::SetOwnerControl. (Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIParserAccessor::AddParsedSubObject(Object^)

For a description of this member, see IParserAccessor::AddParsedSubObject. (Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodICompositeControlDesignerAccessor::RecreateChildControls()

Enables a designer to recreate the composite control's collection of child controls in the design-time environment.(Inherited from CompositeControl.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIControlBuilderAccessor::ControlBuilder

For a description of this member, see IControlBuilderAccessor::ControlBuilder. (Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIControlDesignerAccessor::UserData

For a description of this member, see IControlDesignerAccessor::UserData. (Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDataBindingsAccessor::DataBindings

For a description of this member, see IDataBindingsAccessor::DataBindings. (Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDataBindingsAccessor::HasDataBindings

For a description of this member, see IDataBindingsAccessor::HasDataBindings. (Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIExpressionsAccessor::Expressions

For a description of this member, see IExpressionsAccessor::Expressions. (Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIExpressionsAccessor::HasExpressions

For a description of this member, see IExpressionsAccessor::HasExpressions. (Inherited from Control.)

NameDescription
System_CAPS_pubmethodEnableDynamicData(Type^)

Overloaded. Enables Dynamic Data behavior for the specified data control.(Defined by DataControlExtensions.)

System_CAPS_pubmethodEnableDynamicData(Type^, IDictionary<String^, Object^>^)

Overloaded. Enables Dynamic Data behavior for the specified data control.(Defined by DataControlExtensions.)

System_CAPS_pubmethodEnableDynamicData(Type^, Object^)

Overloaded. Enables Dynamic Data behavior for the specified data control.(Defined by DataControlExtensions.)

System_CAPS_pubmethodFindDataSourceControl()

Returns the data source that is associated with the data control for the specified control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodFindFieldTemplate(String^)

Returns the field template for the specified column in the specified control's naming container.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodFindMetaTable()

Returns the metatable object for the containing data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodGetDefaultValues()

Overloaded. Gets the collection of the default values for the specified data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodGetMetaTable()

Overloaded. Gets the table metadata for the specified data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodSetMetaTable(MetaTable^)

Overloaded. Sets the table metadata for the specified data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodSetMetaTable(MetaTable^, IDictionary<String^, Object^>^)

Overloaded. Sets the table metadata and default value mapping for the specified data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodSetMetaTable(MetaTable^, Object^)

Overloaded. Sets the table metadata and default value mapping for the specified data control.(Defined by DynamicDataExtensions.)

System_CAPS_pubmethodTryGetMetaTable(MetaTable^%)

Overloaded. Determines whether table metadata is available.(Defined by DynamicDataExtensions.)

Use the ChangePassword control on a page to enable your Web site users to change the passwords they use to log on to your Web site.

System_CAPS_noteNote

If you are not familiar with the set of login controls available in ASP.NET, read ASP.NET Login Controls Overview before continuing. For a list of other topics related to login controls and membership, see Managing Users by Using Membership.

System_CAPS_security 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 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.

The ChangePassword control uses the membership provider defined in the MembershipProvider property to change the password stored in the membership provider data store for the Web site. If you do not assign a membership provider, the ChangePassword control uses the default membership provider defined in the section of the Web.config file. The ChangePassword control enables users to perform the following actions:

  • Change their password if they are logged on.

  • Change their password if they are not logged on, as long as the page that contains the ChangePassword control allows anonymous access and the DisplayUserName property is true.

  • Change the password for a user account, even if they are logged on as a different user. This requires the DisplayUserName property to be true.

Setting the DisplayUserName property to true displays the User Name text box, which allows the user to type in a user name. If the user is logged on, the UserName control is populated with the name of the logged-on user. After the password for the given user name is changed, the user is logged on to the account associated with the changed password, even if the user was not logged on to that account previously.

System_CAPS_security Security Note

Accepting user input is a potential security threat. Malicious users can send data that is intended to expose vulnerabilities or run programs that try generated passwords. To improve security when working with user input, you should use the validation features of your control and secure any data providers that are configured for your control. For more information, see Securing Login Controls, Basic Security Practices for Web Applications, and Securing Membership.

The ChangePassword control can be configured to use e-mail services to send the new password to the user. To send e-mail messages to users from any of ASP.NET Web server controls, you must configure an e-mail server in the Web.config file for your application. For more information, see NIB: How to: Install and Configure SMTP Virtual Servers in IIS 6.0.

E-mail messages are configured using the MailDefinition class. You must set the BodyFileName property to instruct ASP.NET to send e-mail.

System_CAPS_security Security Note

Sending user account names or passwords in e-mail is a potential security threat. E-mail messages are typically sent in plain text and can be read by special network "sniffing" applications. To improve security, use the mitigations that are described in Securing Login Controls.

System_CAPS_noteNote

It is not possible to guarantee that a user will receive or view an e-mail message. To verify that a user has received a message, provide a confirmation link in the e-mail message that lets the user confirm that the notification was received.

The ChangePassword control has two states, or views:

  • Change Password view   Requests the current password, and requires the user to type the new password twice for confirmation. If you allow users who are not logged on to change their passwords, set the DisplayUserName property to true to display the UserName control in Change Password view. The UserName control allows the user to provide their registered user name. If there is an error when changing the password, an error message is displayed in the Change Password view, allowing the user to try again.

  • Success view   Provides confirmation that the password has been changed.

    System_CAPS_importantImportant

    The functionality for changing passwords and for continue and cancel is attached to any button that has the correct command name, regardless of which view the button is placed on. For example, a button with the value commandname=changepassword in the Success view will attempt to change the password and result in an exception.

You can use an extensive set of style properties to customize the appearance of the ChangePassword control. Alternatively, you can apply custom templates to the two views if you need complete control over the appearance of the ChangePassword control. If you define a template for a view, the ControlStyle properties are applied. For a list of the controls that you must set in the view templates, see the ChangePasswordTemplate and SuccessTemplate properties. The ChangePassword control examines the content in the template and throws an exception if a required control is not found, is not named correctly, or is of the wrong type. For example, if you use the content in the template and set the DisplayUserName property to true, the ChangePassword will throw an exception if a TextBox or some other IEditableTextControl control is not found for the user name.

The following table lists the ChangePassword control style properties and describes which UI element they affect. For a list of the properties to which each style applies, see the individual style property.

ChangePassword style property

UI element

CancelButtonStyle

Cancel button on the Change Password view.

ChangePasswordButtonStyle

Change Password button on the Change Password view.

ContinueButtonStyle

Continue button on the Success view.

FailureTextStyle

Error text displayed to the user.

HyperLinkStyle

Hyperlinks to other pages.

InstructionTextStyle

Instructional text on the page that describes how to use the ChangePassword control.

LabelStyle

Labels for all input fields, such as text boxes.

PasswordHintStyle

Hints for providing an acceptable password for the Web site.

SuccessTextStyle

Text displayed to the user when the password has been successfully changed.

TextBoxStyle

Text entry input fields.

TitleTextStyle

Titles for the Change Password and Success views.

The ChangePassword control lets you specify CSS style rules in markup. If you use templates to customize the appearance of the ChangePassword control, you can specify CSS styles in the markup in the templates. In that case, no extra outer table is required. You can prevent the table from being rendered by setting the RenderOuterTable property to false.

The ChangePassword control uses a validation group so that other fields on the same page as the ChangePassword control can be validated separately. By default, the ID property of the ChangePassword control is used as the name of the validation group. For example, a ChangePassword control with the ID "ChangePassword1" will use a validation group name of ChangePassword1 as well. To set the validation group that the ChangePassword control is part of, you must create a template with the control, and then change the validation group name.

To show error messages if a user leaves a TextBox control empty, add a ValidationSummary control to the page. Set the ValidationGroup property of the ValidationSummary control to the ID property of the ChangePassword control.

For information about how to use the AccessKey property and the TabIndex property of a ChangePassword control, see Accessibility in Visual Studio and ASP.NET and ASP.NET Controls and Accessibility.

For information about how to configure this control so that it generates markup that conforms to accessibility standards, see Accessibility in Visual Studio and ASP.NET and ASP.NET Controls and Accessibility.

ChangePassword control properties represented by text boxes, such as UserName and CurrentPassword, are accessible during all phases of the page life cycle. In particular, during the Page_Init and Page_Load phases, these properties have the same value they had when the ChangePassword control was rendered. If the user changes the value of the UserName property by modifying the UserName text box, the new value will be available when the changed event is raised, which occurs after the Page_Load phase. Therefore, if you set the value of the UserName property in the Page_Init phase or Page_Load phase and provide a custom handler for a ChangePassword event, any change that the user makes in the UserName text box overrides the value set in the Page_Init or Page_Load phase.

<asp:ChangePassword
    AccessKey="string"
    BackColor="color name|#dddddd"
    BorderColor="color name|#dddddd"
    BorderPadding="integer"
    BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
        Inset|Outset"
    BorderWidth="size"
    CancelButtonImageUrl="uri"
    CancelButtonText="string"
    CancelButtonType="Button|Image|Link"
    CancelDestinationPageUrl="uri"
    ChangePasswordButtonImageUrl="uri"
    ChangePasswordButtonText="string"
    ChangePasswordButtonType="Button|Image|Link"
    ChangePasswordFailureText="string"
    ChangePasswordTitleText="string"
    ConfirmNewPasswordLabelText="string"
    ConfirmPasswordCompareErrorMessage="string"
    ConfirmPasswordRequiredErrorMessage="string"
    ContinueButtonImageUrl="uri"
    ContinueButtonText="string"
    ContinueButtonType="Button|Image|Link"
    ContinueDestinationPageUrl="uri"
    CreateUserIconUrl="uri"
    CreateUserText="string"
    CreateUserUrl="uri"
    CssClass="string"
    DisplayUserName="True|False"
    EditProfileIconUrl="uri"
    EditProfileText="string"
    EditProfileUrl="uri"
    Enabled="True|False"
    EnableTheming="True|False"
    EnableViewState="True|False"
    Font-Bold="True|False"
    Font-Italic="True|False"
    Font-Names="string"
    Font-Overline="True|False"
    Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
        Large|X-Large|XX-Large"
    Font-Strikeout="True|False"
    Font-Underline="True|False"
    ForeColor="color name|#dddddd"
    Height="size"
    HelpPageIconUrl="uri"
    HelpPageText="string"
    HelpPageUrl="uri"
    ID="string"
    InstructionText="string"
    MailDefinition-BodyFileName="uri"
    MailDefinition-CC="string"
    MailDefinition-From="string"
    MailDefinition-IsBodyHtml="True|False"
    MailDefinition-Priority="Normal|Low|High"
    MailDefinition-Subject="string"
    MembershipProvider="string"
    NewPasswordLabelText="string"
    NewPasswordRegularExpression="string"
    NewPasswordRegularExpressionErrorMessage="string"
    NewPasswordRequiredErrorMessage="string"
    OnCancelButtonClick="CancelButtonClick event handler"
    OnChangedPassword="ChangedPassword event handler"
    OnChangePasswordError="ChangePasswordError event handler"
    OnChangingPassword="ChangingPassword event handler"
    OnContinueButtonClick="ContinueButtonClick event handler"
    OnDataBinding="DataBinding event handler"
    OnDisposed="Disposed event handler"
    OnInit="Init event handler"
    OnLoad="Load event handler"
    OnPreRender="PreRender event handler"
    OnSendingMail="SendingMail event handler"
    OnSendMailError="SendMailError event handler"
    OnUnload="Unload event handler"
    PasswordHintText="string"
    PasswordLabelText="string"
    PasswordRecoveryIconUrl="uri"
    PasswordRecoveryText="string"
    PasswordRecoveryUrl="uri"
    PasswordRequiredErrorMessage="string"
    runat="server"
    SkinID="string"
    Style="string"
    SuccessPageUrl="uri"
    SuccessText="string"
    SuccessTitleText="string"
    TabIndex="integer"
    ToolTip="string"
    UserName="string"
    UserNameLabelText="string"
    UserNameRequiredErrorMessage="string"
    Visible="True|False"
    Width="size"
>
        <CancelButtonStyle/>
        <ChangePasswordButtonStyle/>
        <ChangePasswordTemplate>
            <!-- child controls -->
        </ChangePasswordTemplate>
        <ContinueButtonStyle/>
        <FailureTextStyle/>
        <HyperLinkStyle/>
        <InstructionTextStyle/>
        <LabelStyle/>
        <MailDefinition
            BodyFileName="uri"
            CC="string"
            From="string"
            IsBodyHtml="True|False"
            Priority="Normal|Low|High"
            Subject="string"
>
                <EmbeddedObjects>
                        <asp:EmbeddedMailObject
                            Name="string"
                            Path="uri"
                        />
                </EmbeddedObjects>
        </MailDefinition>
        <PasswordHintStyle/>
        <SuccessTemplate>
            <!-- child controls -->
        </SuccessTemplate>
        <SuccessTextStyle/>
        <TextBoxStyle/>
        <TitleTextStyle/>
        <ValidatorTextStyle/>
</asp:ChangePassword>

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.

System_CAPS_noteNote

The new password must meet the minimum requirements set by the in the MinRequiredPasswordLength, MinRequiredNonAlphanumericCharacters, and PasswordStrengthRegularExpression properties. If the password does not meet these requirements, the ChangePasswordError event is raised.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: