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

ASP.NET BorderStyle Property

ASP.NET BorderStyle Property


Web Control Standard Attributes Reference Manual Web control standard properties reference manual


Definition and Usage

The BorderStyle property is used to set or return the border style of the control.

Syntax

webcontrol

id="

id

" BorderStyle=

"style"

runat="server"

/>

Possible Style Values

Value Description
notSet No border style is set.
none Defines no border.
dotted Defines a dotted border.
dashed Defines a dashed border.
solid Defines a solid border.
double Defines a double solid border. The width of the double line equals the value of border-width.
groove Defines a 3D grooved border. Its effect depends on the value of border-color.
ridge Defines a 3D ridged border. Its effect depends on the value of border-color.
inset Defines a 3D inset border. Its effect depends on the value of border-color.
outset Defines a 3D outset border. Its effect depends on the value of border-color.

Example

The following example sets the border style of a table:

BorderWidth="5" GridLines="vertical">

  asp:TableRow

    asp:TableCellHello

    asp:TableCellWorld

  

Demo Example »


Web Control Standard Attributes Reference Manual Web control standard properties reference manual