Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
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 ?
✍: Guest
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="state"
VaryByCustom="minorversion" VaryByHeader="Accept-Language"%>
* 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, 5342👍, 0💬
Popular Posts:
How do I debug thread ? This window is only seen when the program is running in debug mode. In windo...
What are the core functionalities in XML .NET framework? Can you explain in detail those functionali...
How To Run a JUnit Test Class? A JUnit test class usually contains a number of test methods. You can...
What will the following piece of code do? int f(unsigned int x) { int i; for (i=0; x!=0; x>&a...
How To Export Data to an XML File? - Oracle DBA FAQ - Introduction to Oracle SQL Developer If you wa...