Gets or sets the border color of the Web control.
Assembly: System.Web (in System.Web.dll)
[<TypeConverterAttribute(typeof(WebColorConverter))>] abstract BorderColor : Color with get, set [<TypeConverterAttribute(typeof(WebColorConverter))>] override BorderColor : Color with get, set
Use the property to specify the border color of the Web Server control. This property is set using a Color object.
The property will render only for certain controls. For example, the Table, Panel, DataGrid, Calendar, and ValidationSummary controls will render this property. It will also work for the CheckBoxList, RadioButtonList, and DataList controls, if their RepeatLayout property is set to RepeatLayout.Table, not RepeatLayout.Flow. However, it is rendered as the bordercolor attribute, which is not part of the HTML 3.2 standard. The bordercolor attribute works for Microsoft Internet Explorer version 3.0 or later, but not most other browsers.
When the property is not set, the browser will use its default border color. Refer to your browser to determine its default color scheme.
The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information on the Web Forms code model, see ASP.NET Web Forms Page Code Model.