different versions of output caching based on selected values of several dropdownlists

末鹿安然 提交于 2019-12-11 19:07:02

问题


So this is about output caching, and I am trying to use <%@ OutputCache VaryByParam="">, how to realize this?


回答1:


VaryByParam refers to the query string parameters in the request url. So you would need to submit the dropdownlist values as part of the url query string.

You would probably need to use javascript to alter the request url since you would not know the selected values server side.



来源:https://stackoverflow.com/questions/8041819/different-versions-of-output-caching-based-on-selected-values-of-several-dropdow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!