How to do Caching in ASP?
Answer / p.ramakrishna
<%@ OutputCache Duration="60" VaryByParam="None" %>
VaryByParam value
Description
none :One version of page cached (only raw GET)
*: n versions of page cached based on query string and/or
POST body
v1: n versions of page cached based on value of v1 variable
in query string or POST body
v1;v2: n versions of page cached based on value of v1 and
v2 variables in query string or POST body
<%@ OutputCache Duration="60" VaryByParam="none" %>
<%@ OutputCache Duration="60" VaryByParam="*" %>
<%@ OutputCache Duration="60" VaryByParam="name;age" %>
The OutputCache directive supports several other cache
varying options
* VaryByHeader - maintain separate cache entry for
header string changes (UserAgent, UserLanguage, etc.)
* VaryByControl - for user controls, maintain separate
cache entry for properties of a user control
* VaryByCustom - can specify separate cache entries for
browser types and version or provide a custom
GetVaryByCustomString method in HttpApplicationderived class
Is This Answer Correct ? | 1 Yes | 0 No |
What is loop in asp.net?
How to kill session?
What are session cookies?
What are app services?
Can you create an app domain ?
Which of the following .NET framework supports Web API?
What are web beacons used for?
What are the page life cycle events?
How does u get record no from 5 to 15 from a dataset of 100 records?
What is the difference between sealed vs static class?
How Response.flush works in server.Execute ?
1 Answers Keane India Ltd, TCS,
is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?