Explain < @OutputCache% > and the usage of VaryByParam, VaryByHeader ?
Answer / arunendra shukla
OutputCache is used to control the caching policies of an ASP.NET page or user control. To cache a page @OutputCache directive should be defined as follows < %@ OutputCache Duration="100" VaryByParam="none" % >
VaryByParam: A semicolon-separated list of strings used to vary the output cache. By default, these strings correspond to a query string value sent with GET method attributes, or a parameter sent using the POST method. When this attribute is set to multiple parameters, the output cache contains a different version of the requested document for each specified parameter. Possible values include none, *, and any valid query string or POST parameter name.
VaryByHeader: A semicolon-separated list of HTTP headers used to vary the output cache. When this attribute is set to multiple headers, the output cache contains a different version of the requested document for each specified header.
| Is This Answer Correct ? | 0 Yes | 0 No |
Usage of web.configuration ?
How to display validation messages in one control?
What is the maximum length of textbox
what do machine key element in configuration file specify?
Interface have Default Modifier Is 'Public'.Where We Will Use The KeyWord In Interface?
3 Answers Phoenix Technologies,
when the user control event occur in ASp page life cycle?
what are the State management and Its Uses
Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?
Which is faster viewbag or viewdata?
What is mvc in asp.net tutorial? : Asp.Net MVC
what is the deference between dataset and data adapter?
What's the use of response.output.write()?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)