ASP.NET ImageButton Control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
The ASP.NET ImageButton control displays an image on the webpage that reponds to the users mouse click. The control is rendered as a
HTML input control type image.
Working example.
Creating the ImageButton Control.
From the above example.
< asp:ImageButton ID="ImageButton1" runat="server" BorderColor="Gray" BorderStyle="Dotted"
BorderWidth="1px" ImageUrl="~/XBox/images/XBOXConsole.jpg" />
The above example will be rendered as HTML with the result below (source).
<input type="image" name="ctl00$ContentPlaceHolder1$ImageButton1" id="ctl00_ContentPlaceHolder1_ImageButton1" src="../XBox/images/XBOXConsole.jpg" style="border-color:Gray;border-width:1px;border-style:Dotted;" />
From the above, you can see setting the border properties in the ImageButton control transforms as the rendered
HTML style attributes.
|