1.

What is Fragment Caching?

Answer»

In some cases we should store just parts of a page. For instance, we may have a header for our page which will have similar content for all clients. There may be some content/picture in the header which may change regularly. All things considered, we will need to store this header for a span of a day.

This can be achieved by using USER controls (.ascx) in WEB form. In asp.net for each user control we can set cache durations SEPARATELY. The arrangement is to put the header content into a user control and afterward indicate that the user control content ought to be cached. This system is called fragment caching.

To indicate that a user control ought to be RESERVED, we utilize the @OutputCache order simply LIKE we utilized it for the page.



Discussion

No Comment Found