What is the use of Panel control in Asp.Net?

 Posted by vishalneeraj-24503 on 3/13/2014 | Category: ASP.NET Interview questions | Views: 1912 | Points: 40
Answer:

Panel control is a server-side control works exactly same as HTML div control.It works as a container for all the Controls which are placed inside it.

Syntax:
<asp:Panel ID="pnl_Modal_Info" runat="server" Width="200px">

<asp:Label ID="lbl_name" runat="server"></asp:Label>

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

</asp:Panel>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response