How can I cache a user control in a page and uncache it in another page?

  • Thread starter Thread starter Quentin Huo
  • Start date Start date
Q

Quentin Huo

Hi:

I have a user control "myUC" which is used in two pages, "page1.aspx" and
"page2.aspx". I want it cached in page1.aspx, but I don't want it cached in
page2.aspx.

Can I do this?

If yes, how can I do this?

If not, I have to create 2 user controls even though they have teh same
function? Any other solution?

Thanks a lot.

Q.
 
Do a Google search on VaryByParam and VaryByControl
perperties.

These can be used to control output caching for user
controls based on parameters in the query string.

They may fit the bill.
 
Back
Top