Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The VaryByControl attribute allows you to cache the output of a user control based on properties in the control. This attribute is required in a user control @ OutputCache directive unless you have included a VaryByParam attribute.
Take for instance the following directive:
<%@ OutputCache Duration="10" VaryByControl="State;Country"
%>
This directive will vary the output of a user control based on the property values of the State and Country controls. When this user control is included in another ASP.Net page, the user control cache is handled separately from the caching directives of the parent page. This notion of caching user controls separately from the ASP.Net page is known as fragment caching.