Hi,
I've an asp.net user control called UC_Test which has got a public property exposed called param1.It is hosted in aspx pages A and B.
On page A, param1 is set to 10 and on page B param1 is set to 20. Depending on the param value, the formatting of user control is controlled.
I want page A and page B to cache separates instances of user controls.
As okw has pointed out, I want to use caching for performance reasons and not for persisting values.Please let me know how do i achieve this.
Can I use Shared=false for this purpose?for example?
<%@ OutputCache Duration="3600" VaryByParam="none" Shared="false"%>
Thanks for reading.