Wednesday, 29 January 2014

Difference between VaryByParam and VaryByControl?

When should we use VaryByParam over VaryByControl and vice versa?
                                                   OR
What is the difference between VaryByParam and VaryByControl?
If you want to cache multiple responses of a user control, based on a query string or a form "POST" parameter, then use VaryByParam. On the other hand, if you want to cache multiple responses of a user control, based on a control value then use "VaryByControl".

No comments:

Post a Comment