Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以这是关于输出缓存的,我正在尝试使用 <%@ OutputCache VaryByParam="">,如何实现这一点?
VaryByParam 是指请求 url 中的查询字符串参数。因此,您需要将下拉列表值作为 url 查询字符串的一部分提交。
您可能需要使用 javascript 来更改请求 url,因为您不知道服务器端的选定值。