Export (0) Print
Expand All

PasswordRecovery.SubmitButtonImageUrl Property

Gets or sets the URL of an image to use as the Submit button.

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

'Declaration
Public Overridable Property SubmitButtonImageUrl As String
<asp:PasswordRecovery SubmitButtonImageUrl="String" />

Property Value

Type: System.String
The URL of the image to use as the Submit button. The default is Empty.

The SubmitButtonImageUrl property contains the URL of the image to use for the Submit button when the SubmitButtonType property is set to Image.

The SubmitButtonText property is used as the alternative text for the image in browsers that do not display images.

When you use the UserNameTemplate or the QuestionTemplate property, the SubmitButtonImageUrl property has no effect.

The following code example sets the SubmitButtonImageUrl property with declarative syntax. This code example is part of a larger example provided for the SubmitButtonType property.


<asp:passwordrecovery id="PasswordRecovery1" runat="server"
  submitbuttonimageurl="userNameSubmit.png"
  submitbuttontext="Enter User Name">
  <submitbuttonstyle font-names="Comic Sans MS" 
    forecolor="White" 
    backcolor="#00C000">
  </submitbuttonstyle>
</asp:passwordrecovery>


The following code example shows how to set the SubmitButtonImageUrl property programmatically. This code example is part of a larger example provided for the SubmitButtonType property.


PasswordRecovery1.SubmitButtonImageUrl = "userNameSubmit.png"


.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