System.Web.UI.WebControls.PasswordRecovery.UserNameTemplate Property

Gets or sets the template used to display the UserName view of the System.Web.UI.WebControls.PasswordRecovery control.

Syntax

[System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.PasswordRecovery))]
public virtual System.Web.UI.ITemplate UserNameTemplate { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The PasswordRecovery.UserNameTemplate property contains the template that defines the appearance of the System.Web.UI.WebControls.PasswordRecovery control in UserName view.

The following table lists the required and optional controls used in the UserName view template.

UserName

Any control that implements System.Web.UI.IEditableTextControl.

Optional

Submit

Any control that causes event bubbling.

Optional

The Submit control can be any control that causes event bubbling, such as System.Web.UI.WebControls.Button, System.Web.UI.WebControls.LinkButton, or System.Web.UI.WebControls.ImageButton. The control's CommandName property must be set to "Submit".

The System.Web.UI.WebControls.PasswordRecovery control throws an System.Web.HttpException exception if the UserName view does not contain the required controls. No exception is thrown if you give an optional control ID to a control of the wrong type; however, the control is subsequently ignored by the System.Web.UI.WebControls.PasswordRecovery control.

When you use a template to define the appearance of the UserName view, only the following properties affect the behavior of the control:

All other properties are inactive when you use a template for the UserName view of the System.Web.UI.WebControls.PasswordRecovery control.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0