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

ASP.NET Style BorderStyle Property

ASP.NET BorderStyle Property


Style Control the Style control


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 two lines is the same as 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 »


Try it - Demo

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


Style Control the Style control