ASP.NET BorderStyleProperty
Web Control Standard Properties Reference Manual
Definition and Usage
The BorderStyle property is used to set or return the border style of a control.
Syntax
<asp:webcontrol id="id" BorderStyle="style" runat="server" />
Possible Style Values
| Value | Description |
|---|---|
| notSet | The border style is not set. |
| none | Defines no border. |
| dotted | Defines a dotted border. |
| dashed | Defines a dashed border. |
| solid | Defines a solid border. |
| double | Defines a double border. The width of the double lines is equal to the value of border-width. |
| groove | Defines a 3D grooved border. The effect depends on the value of border-color. |
| ridge | Defines a 3D ridged border. The effect depends on the value of border-color. |
| inset | Defines a 3D inset border. The effect depends on the value of border-color. |
| outset | Defines a 3D outset border. The effect depends on the value of border-color. |
Example
The following example sets the border style of a table:
<form runat="server">
<asp:Table runat="server" BorderStyle="dotted"
BorderWidth="5" GridLines="vertical">
<asp:TableRow>
<asp:TableCell>Hello</asp:TableCell>
<asp:TableCell>World</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
<asp:Table runat="server" BorderStyle="dotted"
BorderWidth="5" GridLines="vertical">
<asp:TableRow>
<asp:TableCell>Hello</asp:TableCell>
<asp:TableCell>World</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
Demo »
Web Control Standard Properties Reference Manual Other Extensions