.NET Caching Concepts - How can you cache different version of same page using ASP.NET
Interview Question Database For Software Developers
|
|
| 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 ? | | By: |
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.
| | ID: 1632 | Rank: 1065 | Votes: 0 | Views: 86 | Submitted: 20071023 |
Copyright © 2010 FYIcenter.com
All rights in the contents of this Website are reserved by the individual author.
No part of the contents may be reproduced in any form without author's permission.
|
|
|