hey,
one way to control this scenario is (if i have understod the question correctly) that make a session variable. when the user logs in successfully pass the ID of the user to the session. and on the Load event of each page set the propoerty of the controls to hidden.
e.g.
if(SuccessfullLogin)
{
Session["LoggedInUserID"]=ID;
}
else
{
Session["LoggedInUserID]="";
}
then on the Load event of each page
if(String.IsNullorEmpty(Session["LoggedInUserID"].ToString()))
{
Label objLabel =(Label)Master.FindControl("LabelLogin");
objLabel.Visible=True;
}
else
{
Label objLabel =(Label)Master.FindControl("LabelLogin");
objLabel.Visible=False;
}
Hope it will give you the idea.
Best of luck
Ahsan Sarfraz