System.Web.UI.WebControls.PasswordRecovery.QuestionTemplate Property

Gets or sets the template used to display the Question 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 QuestionTemplate { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

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

Answer

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

Required

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 command name property must be set to "Submit".

The System.Web.UI.WebControls.PasswordRecovery control throws an System.Web.HttpException exception if the Question 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 Question view, only the following properties affect the behavior of the control:

All other properties are inactive when you use a template for the Question view.

Requirements

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