As suresh said you cannot store methods in the session or cache. You can store the output of the method in the session/cache. So when the next time the function is called you can check whether the data is available in session/cache and reuse it. For more
information please refer the following URL.
Contributor
3310 Points
868 Posts
Re: how to store page's data into session
Jun 29, 2011 10:07 PM|senthilwaits|LINK
As suresh said you cannot store methods in the session or cache. You can store the output of the method in the session/cache. So when the next time the function is called you can check whether the data is available in session/cache and reuse it. For more information please refer the following URL.
http://msdn.microsoft.com/en-us/library/ms972429.aspx
Senthil Kumar Sundaram