We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Fragment Caching

Thread ID:





80634 Apr 20,2009 10:22 AM UTC May 1,2009 11:21 AM UTC ASP.NET Web Forms (Classic) 1
Tags: FAQ
Administrator [Syncfusion]
Asked On April 20, 2009 10:22 AM UTC


Im working on Fragment Caching, since "Location" attribute is not defined for the user controls. Im looking for help to make the Caching specific either to Client or Server Side. And also i wanted to delete the cache according to the CacheKey ... Pls advice me on the same.

Pradeep N [Syncfusion]
Replied On May 1, 2009 11:21 AM UTC


The fregement caching is done as follows,

<%@ OutputCache Duration="60" Location="Client" %>

To cache a user control we can use VaryBy Control attribute of output cache to cache the specific user control.

page would cached for 60 seconds specifically for the UserControl1.

If Location="Server" is specified Page will be cached on the server only.

If Location="Server" is specified Page will be cached on the client browser only.

The expiry of cache is done by setting a time span while inserting through Cache.Insert() or make it expired after a certain logic using Cache.Remove().



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon