ASP.NET BorderColor Property
Definition and Usage
The BorderColor property is used to set or return the border color of the control.
Syntax
<asp:webcontrol id="id" BorderColor="color" runat="server" />
Property | Description |
---|---|
color | Set the color value for the control border. It must be a valid HTML Colors. |
Example
The following example sets the border color of the table:
<form runat="server"> <asp:Table runat="server" BorderColor="#FF0000" BorderWidth="5" GridLines="vertical"> <asp:TableRow> <asp:TableCell>Hello</asp:TableCell> <asp:TableCell>World</asp:TableCell> </asp:TableRow> </asp:Table> </form>
Example
- Set the Border Color of Table Control
- Set the Border Color of Table Control (with declaration and script)