Give some Caching Example in VaryByParam,VaryByControl and VaryByCustom

Posted by Naga116 under ASP.NET on 8/12/2011 | Points: 10 | Views : 6247 | Status : [Member] | Replies : 1
Need Some Help in Caching.

Please give some Example in VaryByParam,VaryByControl and VaryByCustom.



Posted by: Dhirendra on: 8/12/2011 [Member] Starter | Points: 25

VaryByParam paramter in output caching means that if the parameter in query string is different (than earlier request) then engine will not returned the cache page instead it will render new page ( and this applies only if the same parameter page is not exists in cache)
VaryByControl means that if control value changed then page will refresh otherwise the page will come from cache..

here is one of the caching example

Naga116, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response