【发布时间】:2014-10-07 12:29:20
【问题描述】:
我在页面中实现了输出缓存,但它与基本页面冲突。 在基本页面中,我在 preint 事件中添加 cookie
HttpCookie currCookie = new HttpCookie("CurrencyId", "3");
currCookie.Expires = DateTime.Now.AddDays(1);
Response.Cookies.Add(currCookie);
Request.Cookies.Set(currCookie);
如果我评论 Response.Cookies.Add(currCookie) 行输出缓存有效,但如果不是输出缓存无效
【问题讨论】:
标签: c# asp.net cookies outputcache