Hello,
on my asp website, i got a webform that displays a category products inside a gridview by selecting category on a dropdownlist.
i activated outputcache on that page by adding to web.config :
<sqlCacheDependency enabled="true" pollTime="500">
<databases>
<add name="dcNames" connectionStringName="csName" />
</databases>
</sqlCacheDependency>and on my administration.aspx page :
<%@ OutputCache Duration="999999" VaryByParam="*" VaryByControl="DropDownList1" SqlDependency="dcName:Product;dcName:Category" %>
to work with my two tables Products and Category.
i got a label to verify the page generation at datetime.
1st problem : When the website is launched, and when i change the dropdownlist selection, the label indicate correctly "Page generated at DateTime.Now" but content of the dropdownlist never updated untill the moment i do a F5 to refresh the page (when i modify a category name for example).
Another problem is that when i select my administration.aspx page on the treeview contained in my masterpage, it keeps an old generation time and so my categories on the dropdownlist are not updated too and do not reflect the database.
Any idea to correct that two problems please ?