asp.net.ph

HtmlImage.Border Property

System.Web.UI.HtmlControls Namespace   HtmlImage Class


Sets or retrieves the width of the image border.

Syntax


Inline <img border = intBorderWidth ... >
Script HtmlImage.Border [ = intBorderWidth ]

Property Value


intBorderWidth Integer specifying the width of the image border, in pixels.

The property is read/write with no default value.

Remarks

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.

Example

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" />
See Also

HtmlImage Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph