Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Load Event fires twice problem

Status
Not open for further replies.

culshaja

Programmer
Aug 10, 1999
705
GB
Hi,

I have a problem where when I call an ASP.Net page, the page load event fires twice. It doesn't do this when I step through each line of code, but if I do not step through each line of code, or press F5 to continue running during the page load event it fires a asecond time. This happens during a get request and not a postback. The secnd time the page load event fires the page seems to have lost any reference to the session that it was connected with the first time it fires. Very odd behaviour. I have the autoeventwireup property set to false, and none of the controls on the page are set to autopostback.

Can anyone shed any light on this and how I may solve it as it is causing real problems.

Thanks,

James :)

James Culshaw
james@miniaturereview.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top