Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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

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.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft