ASP.NET BorderWidth Attribute

Definition and Usage

BorderWidth attribute is used to set or return the border width of the control.

Syntax

<asp:webcontrol id="id" BorderWidth="length" runat="server" />
Value Description
length ຄວາມຂວາງ. ຕ້ອງຈະເປັນຈຳນວນຄວາມຍາວຂອງ.NETທີ່ມີຄວາມພິຈາລະນາ. ຈຳນວນຄວາມຍາວທີ່ມີຄວາມພິຈາລະນາແມ່ນ cm, mm, in, pt, pc ຫຼື px.

Example

ຄືນນີ້ແມ່ນການຕັ້ງຄວາມຂວາງຂອງຕາກີວ.

<form runat="server">
<asp:Table runat="server" 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 BorderWidth