Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

This issue comes across when solving one problem related to page cresh.
When i was debugging my code that time i have observed that my Page_PreInit event fired two time.

I want to investigate on this issue that why the Page_PreInit event firing more then one.(what's the strange behaviour of the page and it's control)

when i go line by line i have observed that when the page onload() & page onunload()
event fired that time this Page_PreInit event invoke.

Please guid me to resolve this issue or correct me if going in wrong direction.


Thanks
Posted
Comments
Rahul Rajat Singh 2-Jun-12 8:02am    
Are you sure this is for the page and not of some user control.
deepakaitr12345 2-Jun-12 8:46am    
100% sure.
and i got some information regarding this i.e. if you have some controls like treeview it's event fired first then the page event fired.I am trying to find out in this way how the cycle is been exicuting.

Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900