H
Hazz
<%@ Page language="c#" Codebehind="cachecontrol.aspx.cs"
AutoEventWireup="false" Inherits="blah" %>
<%@ OutputCache duration="20" VaryByParam="ddlCountries"%>
is at the top of my .aspx page.
the dropdownlist ddlCountries is used to select a country after which a
submit button posts the form to launch a query to populate a grid.
By either observation of the browser or stepping through code and looking at
the IsPostback value in the Page_Load event, I see absolutely no change in
behavior by the app if I comment out <!--%@ OutputCache duration="20"
VaryByParam="ddlCountries"%> -->
Isn't the VaryByParam supposed to prevent a posting back to the server
whenever a new selection is made from the dropdown list?
There is no Postback done either way; with that line included or with it
commented out.
I know this is a real simple concept and mechanism but I just don't get it.
Thank you for any explanations of what VaryByParam is supposed to
accomplish.
-greg
AutoEventWireup="false" Inherits="blah" %>
<%@ OutputCache duration="20" VaryByParam="ddlCountries"%>
is at the top of my .aspx page.
the dropdownlist ddlCountries is used to select a country after which a
submit button posts the form to launch a query to populate a grid.
By either observation of the browser or stepping through code and looking at
the IsPostback value in the Page_Load event, I see absolutely no change in
behavior by the app if I comment out <!--%@ OutputCache duration="20"
VaryByParam="ddlCountries"%> -->
Isn't the VaryByParam supposed to prevent a posting back to the server
whenever a new selection is made from the dropdown list?
There is no Postback done either way; with that line included or with it
commented out.
I know this is a real simple concept and mechanism but I just don't get it.
Thank you for any explanations of what VaryByParam is supposed to
accomplish.
-greg