Caching a user control

Posted by Rishabh Ohri on Stack Overflow See other posts from Stack Overflow or by Rishabh Ohri
Published on 2010-04-07T12:52:20Z Indexed on 2010/04/07 12:53 UTC
Read the original article Hit count: 549

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.

© Stack Overflow or respective owner

Related posts about usercontrols

Related posts about fragment-caching