Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
Object reference not set to an instance of an object.
satish kumar
Aug 16 2011 3:10 AM
7.3k
Reply
Hi
I am trying to check whether the user is logged in or not in Global.asax as shown in code
but I am getting this error
Error: Object reference not set to an instance of an object.
code:
void Application_BeginRequest(object sender, EventArgs e)
{
if (HttpContext.Current.Request.Url.ToString().Contains("SystemUpload"))
{
if (HttpContext.Current.Session["Login"] == null)
{
Response.Redirect("~/Login.aspx");
}
}
}
could you kindly suggest me how to fix this issue.
thanks in advance
satish
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
Press ALT+TAB programatically
How to update excel through grid