Hello pals,i have got a web user control which has a panel inside it.When i test it and hide on another page it works fine but when i do the same during login,its null really.I need to hide it during login.Here is what am trying to do
LoginView log= (LoginView)Master.FindControl("LoginView1");
if (log!= null)
{
}
var student = (StudentPanel )log.FindControl("StudentPanel");
if (student != null)
{
label1.text="found";
}
Mark as answer if satisfied