Give some Caching Example in VaryByParam,VaryByControl and VaryByCustom

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

Please give some Example in VaryByParam,VaryByControl and VaryByCustom.

Nagaraju


Responses

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

Up
0
Down
VaryByParam paramter in output caching means that if the parameter in query string is different (than earlier request) then asp.net 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
http://www.codeproject.com/KB/web-cache/cachingaspnet.aspx

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

Login to post response