Object reference required for non-static field, method, or property

后端 未结 3 1289
余生分开走
余生分开走 2021-01-18 22:14

I want to use the Caching.Cache(...) method, like so:

Cache.Insert(\"Interview Questions\", datatable, sqlcachedep)

or

Syst         


        
3条回答
  •  深忆病人
    2021-01-18 22:25

    Try this (from memory):

    HttpApplication.Context.Cache.Insert("Reading List", datatable, sqlcachedep);
    

提交回复
热议问题