How To Get Session Value in Static Method
We cannot 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 below syntax:-
HttpContext.Current.Session["username"].ToString();
For more:-
Difference between View State and Session state ,How to pass one session vale one page to another in asp.net c# How to write session value in Response.Redirect in asp.net c#
Difference between View State and Session state ,How to pass one session vale one page to another in asp.net c# How to write session value in Response.Redirect in asp.net c#
How To Get Session Value in Static Method
Reviewed by NEERAJ SRIVASTAVA
on
8:36:00 PM
Rating:
good one.
ReplyDelete