开发者

How to prevent user control to be cached

in my web application i am facing a issue after making it live. i am facing issue of caching. i have a menu usercontrol on master page. some menus are opening same page with different parameters.

the issue i am facing is that when a page is opened and i click on menu to open another page or same page with different id. that it select menu item for new page but not dese开发者_如何学运维lect menu of last opened page. i think its because of caching. please tell me how to prevent menu user control of my web application to be cached.

thanks


Hard to tell if it is a caching issue, but have you tried setting OutputCache on your user control?


This does not sound like caching per-se. It sounds more like you have an issue with postback. The control is remembering its last setting after the round trip to the server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜