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)

public virtual string SubmitButtonImageUrl { get; set; }
<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";

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft