This documentation is archived and is not being maintained.

PasswordRecovery.SubmitButtonType Property

Gets or sets the type of Submit button to use when rendering the PasswordRecovery control.

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

abstract SubmitButtonType : ButtonType with get, set
override SubmitButtonType : ButtonType with get, set
<asp:PasswordRecovery SubmitButtonType="ButtonType" />

Property Value

Type: System.Web.UI.WebControls.ButtonType
One of the ButtonType values. The default is Button.

ExceptionCondition
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

Button

A standard HTML button. The SubmitButtonText property provides the text for the button.

Image

The image at the location stored in the SubmitButtonImageUrl property. The SubmitButtonText property provides the alternate text for the image.

Link

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.

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

.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.
Show: