System.Web.UI.HtmlControls Namespace HtmlImage Class
Sets or retrieves the width of the image border.
Inline |
<img border = intBorderWidth ... > |
Script |
HtmlImage.Border [ = intBorderWidth ] |
intBorderWidth |
Integer specifying the width of the image border, in pixels. |
The property is read/write with no default value.
Use this property to create a border or frame around an image with the specified width.
Setting a border to zero or omitting the property causes no border to be displayed. Supplying the border property without a value defaults to a single border.
The below code shows how to declaratively set the Border property of an HtmlImage control at design time.
<img src="~/shared/aspxtreme.jpg" width=100 height=30 border=0
alt="Simply awesome" align="right" runat="server" />
HtmlImage Members