How to Show Hidden server side control at run time?

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

Set control'Visible property to true to show Hidden server side control.
For Example:
<asp:Label ID="lbl_employee_id" runat="server" Visible="false"></asp:Label>

In code behind in any event or method,write:
lbl_employee_id.Visible = true;


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response