I want to use the Caching.Cache(...) method, like so:
Cache.Insert("Interview Questions", datatable, sqlcachedep)
or
System.Web.Caching.Cache.Insert("Reading List", datatable, sqlcachedep);
There is no problem with the variables, but I get this error message in either case:
Error 1 - An object reference is required for the non-static field, method, or property 'System.Web.Caching.Cache.Insert(string, object, System.Web.Caching.CacheDependency)'
How can I fix this?
Thanks