Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing the form
Message
 
To
20/05/2004 10:51:29
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00904563
Message ID:
00906086
Views:
24
>Rick,
>
>>
>>I thought the postback happened AFTER the last line of my OK button click event, but it appears it happens before the first line of my button click event.... (Can anyone confirm for me when the postback actually happens?)
>>

>
>When the OK button is clicked, the page is posted back to the server after any contained validation controls on the page are processed first on the client side. When the page is posted back, the Page_Init and Page_Load events are handled server side. Then any cached events are handled. Then the event that caused the post back is finally processed, followed by the Page_Unload event.
>
>So like this,
>
>Page_Init
>Page_Load
>Cached Events
>Post-back event
>Page_Unload
-------------------------
Ok.... so how would the Page_Load know what it was that got it there?
If I wanted the Page_Load to know what it was that got it there, would I have to set a session variable in the Post-back event AND call Page_Load from within my Post-back event?

Rick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform