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)

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
Available since 2.0
Return to top
Show: