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 |
How many rules are there regarding a well formed XML document? a) Nine b) Three c) Six d) Two
How can u handle Exceptions in Asp.Net?
Explain how asp.net page works?
What is the appSettings Section in the web.config file?
What is asp.net mvc? : asp.net mvc
What is the need of client side and server side validation ?
What is MVVM in dot net?
Where we create sessions for Banking Applications and how to create? expalin with code?
Difference between web user control and web custom control?
Explain the different parts that constitute ASP.NET application?
Elaborate differentiation between ViewState and SessionState?
Differentiate between namespace and assembly.
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)