locked
'HttpResponse' does not contain a definition for 'Cache' and no accessible extension method 'Cache' accepting a first argument of type 'HttpResponse' could be found (are you missing a using directive or an assembly reference?) RRS feed

  • Question

  • User2056817590 posted

    private void Page_Load(object sender, System.EventArgs e)
            {
                Response.Cache.SetCacheability(HttpCacheability.NoCache);
                Response.Cache.SetExpires(DateTime.Now);
                Response.Cache.SetNoServerCaching();
                Response.Cache.SetNoStore();
            }

    Tuesday, April 6, 2021 11:51 AM

All replies