PC Review


Reply
Thread Tools Rate Thread

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

 
 
Quentin Huo
Guest
Posts: n/a
 
      6th Aug 2004
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.


 
Reply With Quote
 
 
 
 
Charles Chen
Guest
Posts: n/a
 
      6th Aug 2004
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.

>-----Original Message-----
>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.
>
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to scroll a webbrowser control down a page, e.g. the same as if a user hit page-down? dr Microsoft C# .NET 1 27th Feb 2007 04:45 PM
output cache problem : when any user control registered on a page page not cached SharpSmith@gmail.com Microsoft ASP .NET 0 23rd Nov 2006 07:28 PM
ASP 2.0: How to access Master Page from Web User Control on Page? ivanpais@gmail.com Microsoft ASP .NET 3 15th May 2006 05:23 PM
Page load of the parent page called twice when a modal dialog is opened from a button click of the user control on the parent page Samy Microsoft ASP .NET 2 15th Aug 2005 04:30 PM
Control of the Page Cache Jeremy Microsoft ASP .NET 3 5th Dec 2003 03:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:24 PM.