Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
how to use session variable in class files asp.net 4.0 C#
Dinesh Satpute
Feb 17 2014 2:53 AM
10.5k
Reply
i have created on web application in Asp.net 4.0 using C#.
i have implemented session in asp pages but i want to access same session data in my class files.
i have searched regarding this, and then i used
HttpContext.Current.Session["something"]
but it is always throwing NullException.
I am calling this method from page load of aspx page.
Thanks in advance....
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Fetch data from database to textbox inside gridview
Add New Field to Model Class Dynamically in MVC4