PasswordRecovery::SubmitButtonType Property
Gets or sets the type of Submit button to use when rendering the PasswordRecovery control.
Assembly: System.Web (in System.Web.dll)
public: virtual property ButtonType SubmitButtonType { ButtonType get (); void set (ButtonType value); }
<asp:PasswordRecovery SubmitButtonType="ButtonType" />
Property Value
Type: System.Web.UI.WebControls::ButtonTypeOne of the ButtonType values. The default is Button.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The SubmitButtonType property is not set to a valid System.Web.UI.WebControls::ButtonType value. |
The SubmitButtonType property determines what kind of button is used to submit entries to the PasswordRecovery control.
The following table lists the button type used for each value of the SubmitButtonType property.
SubmitButtonType value | Button used |
|---|---|
A standard HTML button. The SubmitButtonText property provides the text for the button. | |
The image at the location stored in the SubmitButtonImageUrl property. The SubmitButtonText property provides the alternate text for the image. | |
An HTML link. The SubmitButtonText property provides the link text. |
When you use templates to define the appearance of the PasswordRecovery control, the SubmitButtonType property has no effect.
The following code example shows the appearance of the Submit buttons on the PasswordRecovery control for different settings of the SubmitButtonType property.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.