473,412 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Caching Design Issue

RMD
I am creating a portal that uses UserControls as each "portlet". Each of
these UserControls is autonomous in the sense that whether or not they are
loaded is determined completely at runtime, and they are independent
mini-applications. So far, so good.

Each of these UserControls has a title bar (just like in windows) that has a
nifty little menu. What I would like to do is have an item on this menu
called "Refresh" which forcefully clears the output cache for a particular
portlet.

I'm hoping that I can do something like capture the "Refresh" menu item
event and pass that information to the containing page, which then does
something like "somePortlet.Cache.Clear()".

I've investigated the various "VaryBy" mechanisms, and I'm not sure how I
can use these to accomplish what I want.

Thanks,
RMD
Nov 17 '05 #1
3 1660
What about a parameter called Clear? Set it to 1, then you can varybyparam
....

Justin Dutoit

"RMD" <rm*@nospam.sorry.com> wrote in message
news:Ox**************@TK2MSFTNGP10.phx.gbl...
I am creating a portal that uses UserControls as each "portlet". Each of
these UserControls is autonomous in the sense that whether or not they are
loaded is determined completely at runtime, and they are independent
mini-applications. So far, so good.

Each of these UserControls has a title bar (just like in windows) that has a nifty little menu. What I would like to do is have an item on this menu
called "Refresh" which forcefully clears the output cache for a particular
portlet.

I'm hoping that I can do something like capture the "Refresh" menu item
event and pass that information to the containing page, which then does
something like "somePortlet.Cache.Clear()".

I've investigated the various "VaryBy" mechanisms, and I'm not sure how I
can use these to accomplish what I want.

Thanks,
RMD

Nov 17 '05 #2
RMD
Well that's the problem. First, I don't want to use query string variables
if I can avoid it. (I currently have a very pretty and bookmarkable URL
that's parsed by an HTTP Module.)

Second, querystring variables, as you know, are page-wide... but this is a
per-usercontrol cache. I don't want to clear the cache of all usercontrols,
just specific ones.

I guess I'm confused as to how varybyparam works with usercontrols versus
pages. Wouldn't I have to have a unique querystring variable for each
usercontrol to look at? How would I do this if I can't necessarily know what
controls I going to be on the page until runtime. I suppose I could mandate
GUIDs for VaryByParam, but that seems kinda hacky.

RMD

"Justin Dutoit" <an**@anon.com> wrote in message
news:Os**************@TK2MSFTNGP11.phx.gbl...
What about a parameter called Clear? Set it to 1, then you can varybyparam
...

Justin Dutoit

"RMD" <rm*@nospam.sorry.com> wrote in message
news:Ox**************@TK2MSFTNGP10.phx.gbl...
I am creating a portal that uses UserControls as each "portlet". Each of
these UserControls is autonomous in the sense that whether or not they are loaded is determined completely at runtime, and they are independent
mini-applications. So far, so good.

Each of these UserControls has a title bar (just like in windows) that has
a
nifty little menu. What I would like to do is have an item on this menu
called "Refresh" which forcefully clears the output cache for a

particular portlet.

I'm hoping that I can do something like capture the "Refresh" menu item
event and pass that information to the containing page, which then does
something like "somePortlet.Cache.Clear()".

I've investigated the various "VaryBy" mechanisms, and I'm not sure how I can use these to accomplish what I want.

Thanks,
RMD


Nov 17 '05 #3
Maybe you could make a token change to some data the user control depends
on.

hth
Justin

"RMD" <rm*@nospam.sorry.com> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
Well that's the problem. First, I don't want to use query string variables
if I can avoid it. (I currently have a very pretty and bookmarkable URL
that's parsed by an HTTP Module.)

Second, querystring variables, as you know, are page-wide... but this is a
per-usercontrol cache. I don't want to clear the cache of all usercontrols, just specific ones.

I guess I'm confused as to how varybyparam works with usercontrols versus
pages. Wouldn't I have to have a unique querystring variable for each
usercontrol to look at? How would I do this if I can't necessarily know what controls I going to be on the page until runtime. I suppose I could mandate GUIDs for VaryByParam, but that seems kinda hacky.

RMD

"Justin Dutoit" <an**@anon.com> wrote in message
news:Os**************@TK2MSFTNGP11.phx.gbl...
What about a parameter called Clear? Set it to 1, then you can varybyparam
...

Justin Dutoit

"RMD" <rm*@nospam.sorry.com> wrote in message
news:Ox**************@TK2MSFTNGP10.phx.gbl...
I am creating a portal that uses UserControls as each "portlet". Each of these UserControls is autonomous in the sense that whether or not they
are loaded is determined completely at runtime, and they are independent
mini-applications. So far, so good.

Each of these UserControls has a title bar (just like in windows) that has
a
nifty little menu. What I would like to do is have an item on this menu called "Refresh" which forcefully clears the output cache for a

particular portlet.

I'm hoping that I can do something like capture the "Refresh" menu item event and pass that information to the containing page, which then does something like "somePortlet.Cache.Clear()".

I've investigated the various "VaryBy" mechanisms, and I'm not sure
how I can use these to accomplish what I want.

Thanks,
RMD



Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: olle | last post by:
Hi folks. I learning asp.net and compare it with traditional asp and Access-developing. The issue is this one: 1/I have this Ms Acceess adp-project application that works fine on my Ms Sql...
10
by: Jon Maz | last post by:
Hi, My goal is to take the entire html/javascript stream spat out by .aspx pages and save them as simple strings in a database (for caching purposes). I'm not sure how I can get hold of this...
2
by: Welman Jordan | last post by:
Hello, I met with a tough problem when making my pages. Please help. To make the problem short, i write down what i want here first, and then explain my situation in details. How can I...
1
by: Michael Bray | last post by:
Ok guys here's a tough one... I have a client/server application that uses remoting for communication. I am using Activator.GetObject to create a remoting instance with an URL that specifies the...
1
by: Kevin Burrowes | last post by:
I need to implement caching for a large enterprise application and we are planning to use the newest Caching Application Blocks. (Enterprise Library Jan. 2006) We want to cache Business Entities...
7
by: Griff | last post by:
I need to implement caching in a web application and have come up against a design issue which I would like some advice on. Am using CLASSIC ASP... The web application is a "business to...
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
6
by: onnodb | last post by:
Hi all, While working on an Access UI to a MySQL database (which should be a reasonable, low-cost, flexible interface to the DB, better than web-based, much less costly than a full-fledged .NET...
14
by: Rowan | last post by:
What is the best approach to caching database results. example say i'm doign an update on several entries which i've loaded into an array. I want to allow the user to click through and up date each...
9
by: jehugaleahsa | last post by:
Hello: I am writing a cute little class that will cache queries against a database. Currently, I am implementing this by storing the command text, parameter values and generated DataRows. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.