Which type if caching will be used if we want to cache the portion of a page instead of whole page?

ANS:- Fragment Caching: It caches the portion of the page generated by the request. For that, we can create user controls with the below code:


1 <%@ OutputCache Duration="120" VaryByParam="CategoryID;SelectedID"%>

No comments:

Post a Comment