Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain < @OutputCache% > and the usage of VaryByParam, VaryByHeader ?



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

Post New Answer

More ASP.NET Interview Questions

How many rules are there regarding a well formed XML document? a) Nine b) Three c) Six d) Two

1 Answers   Syntax Softtech,


How can u handle Exceptions in Asp.Net?

4 Answers  


Explain how asp.net page works?

0 Answers  


What is the appSettings Section in the web.config file?

0 Answers   MindCracker,


What is asp.net mvc? : asp.net mvc

0 Answers  


What is the need of client side and server side validation ?

1 Answers   Keane India Ltd,


What is MVVM in dot net?

1 Answers   L&T,


Where we create sessions for Banking Applications and how to create? expalin with code?

1 Answers   Wipro,


Difference between web user control and web custom control?

0 Answers  


Explain the different parts that constitute ASP.NET application?

0 Answers   B-Ways TecnoSoft,


Elaborate differentiation between ViewState and SessionState?

0 Answers   QuestPond,


Differentiate between namespace and assembly.

0 Answers  


Categories