How can you cache different version of same page using ASP.NET cache object ?
.NET INTERVIEW QUESTIONS - How can you cache different version of same page using ASP.NET cache object ?
Output cache functionality is achieved by using “OutputCache” attribute on ASP.NET page header.
The syntax is as follows:-
<%@ OutputCache Duration="20" Location="Server"
* VaryByParam :- Caches different version depending on input parameters send through HTTP POST/GET.
* VaryByHeader:- Caches different version depending on the contents of the page header.
* VaryByCustom:-Lets you customize the way the cache handles page variations by declaring the attribute and overriding the GetVaryByCustomString handler.
* VaryByControl:-Caches different versions of a user control based on the value of properties of ASP objects in the control.
2009-05-19, 5203👍, 0💬
How to reduce the final size of an executable file? Size of the final execuatable can be reduced usi...
What is the main difference between a Vector and an ArrayList? Java Vector class is internally synch...
What are database triggers? How are the triggers fired? Read this collection of questions and answer...
.NET INTERVIEW QUESTIONS - What is the difference between thread and process? A thread is a path of ...
How Oracle Handles Dead Locks? - Oracle DBA FAQ - Understanding SQL Transaction Management Oracle se...