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
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, 4559👍, 0💬
Popular Posts:
What Happens If the UPDATE Subquery Returns Multiple Rows? - Oracle DBA FAQ - Understanding SQL DML ...
Can you explain in brief how can we implement threading ? Private Sub Form1_Load(ByVal sender As Sys...
Do You Know the Book "JUnit in Action"? You should know this book. It received some good reviews. Ti...
What is the difference between Authentication and authorization? This can be a tricky question. Thes...
How To Analyze Tables with "mysqlcheck"? - MySQL FAQs - Administrator Tools for Managing MySQL Serve...