ASP.NET BorderColor Property

Definition and Usage

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 ตั้งค่าสีของขอบคอนโทรล ต้องเป็นสีที่ถูกต้องตาม HTML

Example

ตัวอย่างนี้ตั้งค่าสีของขอบตาราง:

<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 Table Control BorderColor