Click to See Complete Forum and Search --> : Page Load fier page un load Automaticaly


emraan
06-23-2006, 02:42 AM
When i Load my asp.net page, i put some code on page unload, it fire page unload automaticaly, is there any way to to stop this.

AlecW
06-23-2006, 11:47 AM
There is no way to stop this from firing as the page lifecycle ends with the unload method being called so that the page can be cleaned up.

Here is a great link to the ASP.NET page Lifecycle:
http://msdn2.microsoft.com/en-us/library/ms178472.aspx