views:

21

answers:

0

I have a user control which I want to Output cache( fragment cache) and set the dependency to a query. I mean that on change or modification of data returned by that query the cache should get invalidated. I have read that in the output cache directive in the user control Sqldependency = "CommandNotification" cannot be used.

So, how should i proceed in order to add the sql query dependency to the fragment cached user control.