Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 1-Jun-12 22:56pm
Comments
Rahul Rajat Singh at 2-Jun-12 8:02am
   
Are you sure this is for the page and not of some user control.
deepakaitr12345 at 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)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 BillWoodruff 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 2 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100