hiding a web user control during login

Posted by Jopito under ASP.NET on 2/13/2014 | Points: 10 | Views : 451 | Status : [Member] | Replies : 0
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)

Mark as answer if satisfied


(No response found.)

Login to post response