October 2010
Intermediate to advanced
1920 pages
73h 55m
English
When you include an <%@ OutputCache %> directive in a User Control, you can modify programmatically how the User Control is cached. The User Control CachePolicy property exposes an instance of the ControlCachePolicy class, which supports the following properties:
• Cached—
Enables you to enable or disable caching.
• Dependency—
Enables you to get or set a cache dependency for the User Control.
• Duration—
Enables you to get or set the amount of time (in seconds) that content is cached.
• SupportsCaching—
Enables you to check whether the control supports caching.
• VaryByControl—
Enables you to create different cached versions of the control, depending on the value of a control.
• VaryByParams ...