Do you want to save something for request life cycle?
ASP.NET 2.0 provide you a solution to save something for the request life cycle.
And you can access it from anywhere.
with httpContext.Current.Items["Key"]
In the previous blog I have showed that how to use control state,
you can save the page state similarly.
When you load it just put it with specified keys,
then any one can access it for that postback cycle,
And this will load before anything so don't worry...
No comments:
Post a Comment
Please, no abusive word, no spam.