Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Load fires twice.

$
0
0

I just noticed that after I migrated my project Load event started firing twice and even code in if(!IsPostBack) fires twice.

It seems to be that the reason is that asp.net 2.0 adds Page_Load automatically for Load event and since in 1.1 version there was line like:

 this.Load+=new EventHandler(thi.Page_Load);

it is added second time.

For some reason in my case this line wasn't removed by "Convert to Web Application" command.

Just wanted to make sure that I have to do it myself and that this know bug.

Thank you,

Shimon.


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>