HtmlInputImage.Border Property
Gets or sets the border width for the HtmlInputImage control.
[Visual Basic] Public Property Border As Integer [C#] public int Border {get; set;} [C++] public: __property int get_Border(); public: __property void set_Border(int); [JScript] public function get Border() : int; public function set Border(int);
Property Value
The border width (in pixels) for the HtmlInputImage control.
Remarks
Use the Border property to specify the border width for the HtmlInputImage control.
Note This property is not supported in all browsers. Check your browser to determine compatibility.
Example
[Visual Basic, JScript] The following example demonstrates how to use the Border property to specify the border width for the HtmlInputImage control.
[Visual Basic] <%@ Page Language="VB" AutoEventWireup="True" %> <html> <script language="VB" runat=server> Sub SubmitBtn_Click(ByVal Source As Object, ByVal E as ImageClickEventArgs) Message.InnerHtml = "The Submit Button was clicked!" End Sub Sub ClearBtn_Click(ByVal Source As Object, ByVal E as ImageClickEventArgs) Message.InnerHtml = "The Clear Button was clicked!" End Sub </script> <body> <form method=post runat=server> <input type=image border="5" src="Submit.jpg" OnServerClick="SubmitBtn_Click" runat=server> <input type=image border="5" src="Clear.jpg" OnServerClick="ClearBtn_Click" runat=server> <h1> <span id="Message" runat=server></span> </h1> </form> </body> </html> [JScript] <%@ Page Language="JScript" AutoEventWireup="True" %> <html> <script language="JSCRIPT" runat=server> function SubmitBtn_Click(source : Object, e : ImageClickEventArgs){ Message.InnerHtml = "The Submit Button was clicked!" } function ClearBtn_Click(source : Object, e : ImageClickEventArgs){ Message.InnerHtml = "The Clear Button was clicked!" } </script> <body> <form method=post runat=server> <input type=image border="5" src="Submit.jpg" OnServerClick="SubmitBtn_Click" runat=server> <input type=image border="5" src="Clear.jpg" OnServerClick="ClearBtn_Click" runat=server> <h1> <span id="Message" runat=server></span> </h1> </form> </body> </html>
[C#, C++] No example is available for C# or C++. To view a Visual Basic or JScript example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
HtmlInputImage Class | HtmlInputImage Members | System.Web.UI.HtmlControls Namespace