Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Style BorderColor Property

ASP.NET BorderColor Property


Style Control the Style control


Definition and Usage

The BorderColor property is used to set or return the border color of the control.

Syntax

webcontrol

id="

id

" BorderColor=

"color"

runat="server"

/>

property Description
color The color set as the border color of the control. Must be a valid HTML color。

Example

The following example sets the border color of a table:

BorderWidth="5" GridLines="vertical">

  asp:TableRow

    asp:TableCellHello

    asp:TableCellWorld

  

Demo Example »


Try it - Demo

Set the Button control's border color (with declaration and script)


Style Control the Style control