Easy Tutorial
❮ Met Websecurity Createuserandaccount Prop Webcontrol Panel Groupingtext ❯

ASP.NET ImageButton Control



Definition and Usage

The ImageButton control is used to display a clickable image.


Properties

Property Description .NET
CausesValidation Specifies whether the page is validated when the ImageButton control is clicked. 1.0
CommandArgument Additional information about the command to be executed. 1.0
CommandName The command associated with the Command event. 1.0
GenerateEmptyAlternateText Specifies whether the control generates an empty string as the alternate text. 2.0
OnClientClick The name of the function to execute when the image is clicked. 2.0
PostBackUrl The URL of the target page to post back from the current page when the ImageButton is clicked. 2.0
runat Specifies that the control is a server control. Must be set to "server". 1.0
TagKey 1.0
ValidationGroup The group of controls for which the ImageButton control causes validation when it posts back to the server. 2.0

Note: The properties of the Image control can also be used on the ImageButton control.

Web Control Standard Properties

For a complete description, visit Web Control Standard Properties.

Control Standard Properties

For a complete description, visit Control Standard Properties.


Example

ImageButton


❮ Met Websecurity Createuserandaccount Prop Webcontrol Panel Groupingtext ❯