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

StackOverflow https://stackoverflow.com/questions/8041819

  •  23-02-2021
  •  | 
  •  

문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top