Groups | Blog | Home
all groups > asp.net > march 2006 >

asp.net : Page_Load is skipped


Peter Bromberg [C# MVP]
3/5/2006 12:40:27 PM
Make sure that you haven't lost your delegate wireup (C#):

private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




[quoted text, click to view]
Franz
3/5/2006 11:17:06 PM
Hi,

I have a page for sign out. In this sign out page, it calls Session.Abandon
to remove the session.

Then I inputs the URL of any protected page. I have placed some security
checking code in the Page_Load. Since the Session is abandoned, any invalid
access will redirect to the error page. However, I found that the Page_Load
is not run (I add a breakpoint to this method). Why does it happen?

Thanks.
Franz

AddThis Social Bookmark Button