Tuesday, November 24, 2009

Page_Load event firing twice

This has not been a really great week for me and ASP.NET...

I ran into this problem after fixing the other problem:

Page_Load event is firing twice - ExtremeExperts

So with that information, coupled with this information:

Stackoverflow.com - ASP.NET Page.OnLoad executes twice

...and this item from the Microsoft KB:

How to use the AutoEventWireup attribute in an ASP.NET Web Form by using Visual C# .NET

...I was able to solve this double-page-load problem since I was, in fact, wiring up events in a page that had AutoEventWireup set to "true" and the Page_Load was getting fired twice. Awesome.

Anyway, another bullet dodged.

No comments: