Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing the form
Message
From
23/05/2004 10:56:05
 
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00904563
Message ID:
00906306
Views:
22
Rick,
>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?
>

I don't know the answer to your question about knowing what caused the post back. I'm not sure how or if you can do that. But, you might already know that you can check IsPostBack and do conditional processing in the page load. If not...here is an example.
// are we posting back?
if(IsPostBack)
     // check the session variable that you set
     string myvar = Session["myvar"].ToString()
     
     // do your processing...
Kendall Webb
Senior Software Engineer
MCAD.Net/MCSD.Net
Previous
Reply
Map
View

Click here to load this message in the networking platform