Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Problem:
How to persist an object state in to a session variable from custom web part?
When you use the System.Web.HttpContext.Current.Session property you will get the error message "object reference not to set an instance of the object".
Work Around:
Use the Page.Session property to store the object in session