Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written the code in site.master but its not working.
please help me.
if i use this code on site.master.cs
[WebMethod]
public static void CheckSession()
{
if (Session[KaizenConstants.CURRENTLOGGEDINUSER] == null)
{
Response.Redirect("Login.aspx");
}
}
 
I am getting the error as :
Error	69	An object reference is required for the non-static field, method, or property 'System.Web.UI.UserControl.Response.get'.


Thanks
Harshal.
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900