Connecting Tech Pros Worldwide Forums | Help | Site Map

An object reference is required for the non-static field, method, orproperty 'System.Web.UI.Page.Request.get'

jake
Guest
 
Posts: n/a
#1: Nov 21 '08
I think I may know why this is happening but I am a little fuzzy as to
what the solution should be as I am somewhat new to all of this.

The bare-bones code that generates the error upon compilation is:

class cart
{
public static string fetchCartCookieValue()
{
return Request.Cookies["cartCookie"].Value;
}

public cart()
{
...
}
}

Any help is appreciated.
jake

Closed Thread