We can not be use the
Session object in static method so to its problem while reading the
session value in static method ,to overcome this problem we need to read
session value like as shown in following code snippet:
HttpContext.Current.Session["UserName"].ToString();
Summary
I hope this code snippet is useful ,if you have any suggestion regarding this article then please contact me.
Post a Comment