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

What is the difference between Server.Transfer and Response.Redirect?

5 Answers  


To which class you load XML or Related Data

1 Answers  


What is the good practice to implement validations in aspx page?

0 Answers  


What is the difference between trace and debug in asp.net?

0 Answers  


Define machine.config in .net?

0 Answers  


when using windows API in .net then it is managed code or Unmanaged code?

2 Answers  


Explain the role of global.asax?

0 Answers  


Is it possible for me to change my aspx file extension to some other name?

0 Answers  


What tag do you use to add a hyperlink column to the DataGrid?

2 Answers   Siebel Systems,


best .net institute in hyderabad

7 Answers  


What does mvc represent in asp.net? : asp.net mvc

0 Answers  


Which @page directive should you create an asynchronous page?

1 Answers  


Categories