Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
How can you cache different version of same page using ASP.NET
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. Below is the syntax
<%@ 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.
2007-10-23, 4490👍, 0💬
Popular Posts:
What is CMM and different levels? explain? The Capability Maturity Model (CMM) is a process capabili...
What are the standard ways of parsing XML document? XML parser sits in between the XML document and ...
Enable ASP.NET polling using “web.config” file Now that all our database side is configured in order...
Does .NET support UNICODE and how do you know it supports? Yes .NET definitely supports UNICODE. Try...
How does ASP.NET maintain state in between subsequent request ? Refer caching chapter.