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

Technology CommunityCategory: ASP.NETWhich type if caching will be used if we want to cache the portion of a page instead of whole page?
VietMX Staff asked 3 years ago

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

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