Redigera

Dela via


PasswordRecovery.SubmitButtonImageUrl Property

Definition

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

public:
 virtual property System::String ^ SubmitButtonImageUrl { System::String ^ get(); void set(System::String ^ value); };
public virtual string SubmitButtonImageUrl { get; set; }
member this.SubmitButtonImageUrl : string with get, set
Public Overridable Property SubmitButtonImageUrl As String

Property Value

The URL of the image to use as the Submit button. The default is Empty.

Examples

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>
<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";

Remarks

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.

Applies to

See also