Export (0) Print
Expand All
Expand Minimize

ChangePassword.SuccessTemplate Property

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

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

[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[BrowsableAttribute(false)]
[TemplateContainerAttribute(typeof(ChangePassword))]
public virtual ITemplate SuccessTemplate { get; set; }
<asp:ChangePassword>
	<SuccessTemplate>ITemplate</SuccessTemplate>
</asp:ChangePassword>

Property Value

Type: System.Web.UI.ITemplate
An ITemplate object that contains the template for displaying the Success and Change Password views of the ChangePassword control. The default is null.

The SuccessTemplate property specifies the ITemplate object that is used by the ChangePassword control. The SuccessTemplate property is accessible only when using a code-behind file. For more information, see How To: Create ASP.NET Web Server Control Templates Dynamically.

A template is a set of HTML elements and controls that make up the layout for a particular portion of a control. Templates differ from styles:

  • Templates define the content of a section of a control.

  • Styles specify the appearance of elements in the control.

For more information, see ASP.NET Web Server Controls Templates and ASP.NET Themes and Skins.

The ChangePassword control supports the following templates, which are applied to the corresponding control view.

Template name

Control view

ChangePasswordTemplate

Change Password view

SuccessTemplate

Success view

You can also create or modify the template for a control in your .aspx file. For more information, see How to: Create ASP.NET Web Control Templates Declaratively.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft