ImageButton Server Control

ImageButton Server Control

The ImageButton control is also a variation of the Button control.it allows you to use a custom image as the form’s button. This means that you can create your own buttons as images, and the users can click the images to submit the data.

Code for ImageButton Server Control:

<asp:ImageButton ID=”ImageButton1″ runat=”server” OnClick=”ImageButton1_Click” ImageUrl=”search.jpg” />

The ImageButton control specifies the location of the image in use via the ImageUrl property.

Scroll to Top