Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have put lable in masterpage.this will be do visible / invisible according to session value.

For Ex:session["name"] is display in lable.
when session timeout this will be invisible.

I know how to do this in content page,but how to do this in master page?
please help me.
Posted

1 solution

Hi,

You can write Page_Load event in master page same way as in content page. And in that event handler you can check for the session value and show hide the target label accordingly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900