By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,290 Members | 1,439 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,290 IT Pros & Developers. It's quick & easy.

How to cache a user control in the MasterPage?

P: n/a
rh
Hi,

My MasterPage contains a user control used for navigation. I have some .aspx
pages that use this MasterPage and I would like to cache only the user
control used for navigation.

How do I go about doing so?

I know that I can cache specific controls on a page by setting the
VaryByControl property of the OutputCache directive. But if the control is
located in the MasterPage, what do I set the VaryByControl property to? Do I
simply type the id of the user control as usual or are there special steps I
must take because the user control is in the MasterPage?

Thanks.
Feb 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
DWS
rh,
rh do you want user a to see what user b is doing? Cause thats what your
asking the group to help you with? Send complete source to your user control
and master page for more help.

Thanks
DWS

"rh" wrote:
Hi,

My MasterPage contains a user control used for navigation. I have some .aspx
pages that use this MasterPage and I would like to cache only the user
control used for navigation.

How do I go about doing so?

I know that I can cache specific controls on a page by setting the
VaryByControl property of the OutputCache directive. But if the control is
located in the MasterPage, what do I set the VaryByControl property to? Do I
simply type the id of the user control as usual or are there special steps I
must take because the user control is in the MasterPage?

Thanks.

Mar 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.