On my Master Page, I have a little method in the Page_Load
event that checks to see if a user is logged in, and redirects them to the Login page if not.
The problem is that for some of my pages the Page_Load
events presume a users logged are in, and these events seems to fire before the login check in the master page, which causes errors.
What are some ways around this? Any events I can use other than Page_Load in my pages, that'll fire after the master page?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…