Author: shauntck | Posted on: 9/20/2008 12:34:36 PM | Views : 444

Hey guys, have a question for you that I've been searching on and off for quite a while and thought maybe some of you might know the answer.
I've basically created a user control that is loaded dynamically. There can be several instances of this user control on the page (all loaded dynamically) and I want to be able to cache the entire control (html preferably) varying by a property of that control (content_id).

-I can't use the varybyparam because the content_id is not passed in via the query string (because there can be multiple instances of that control on the page)

-I don't think I can varybycustom as the global.asax file doesn't have the access to the control property (or does it?).
I suppose I could just use the Cache programmatically but i'm a little confused regarding that.
I could use this some how like:  Cache[content_id] = GetDataSet()  or something like that.

This would only ...

Go to the complete details ...