Panel control like Group-Box control

Posted by vishalneeraj-24503 under ASP.NET category on | Points: 40 | Views : 1540
We can make Panel control as Group-Box with header.

With the help of GroupingText property of Panel control,we can give panel as a Group box look.

For Example:-

<asp:Panel ID="pnl_employee_info" runat="server" GroupingText="Employee Information"  BorderColor="Blue" BorderWidth="1px" BorderStyle="Solid">
<asp:Label ID="lbl_employee_name" runat="server" Text="Employee Name"></asp:Label>
<asp:TextBox ID="txt_employee_name" runat="server"></asp:TextBox>

Comments or Responses

Login to post response