Ask a Question related to ASP.NET General, Design and Development.
-
RMD #1
Caching Design Issue
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
RMD Guest
-
HTTPService caching issue? (PL/SQL backend)
Have you tried using a bound array collection. It sounds more like binding issues. -
CFMX 7 Linux Caching Issue
I am the administrator for a Linux server running CF MX 7. Runs great except for one thing (which is rather large). The server houses a website... -
Web design issue- please help
Hi All, I am an intermediate level of web designer. I would like you to give me some advice on web design issues; i.e. if someone needs to... -
PHP page caching issue
Hi folks. I have an interesting problem with regards to some PHP pages of mine. Basically, I have a form page where the user is able to use list... -
OO Design question for Net::HTTP caching extension
I'm in the process of writing an HTTP-1.1 extension to Net::HTTP. At the moment, I'm replacing Net::HTTP#get with a version that will check for a... -
Justin Dutoit #2
Re: Caching Design Issue
What about a parameter called Clear? Set it to 1, then you can varybyparam
....
Justin Dutoit
"RMD" <rmd@nospam.sorry.com> wrote in message
news:Ox2t2bpODHA.2460@TK2MSFTNGP10.phx.gbl...a> 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> 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
>
>
Justin Dutoit Guest
-
RMD #3
Re: Caching Design Issue
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" <anon@anon.com> wrote in message
news:OsVRwIrODHA.1748@TK2MSFTNGP11.phx.gbl...are> What about a parameter called Clear? Set it to 1, then you can varybyparam
> ...
>
> Justin Dutoit
>
> "RMD" <rmd@nospam.sorry.com> wrote in message
> news:Ox2t2bpODHA.2460@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 theyhas> > 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) thatparticular> 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 aI> > 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>> > can use these to accomplish what I want.
> >
> > Thanks,
> > RMD
> >
> >
>
RMD Guest
-
Justin Dutoit #4
Re: Caching Design Issue
Maybe you could make a token change to some data the user control depends
on.
hth
Justin
"RMD" <rmd@nospam.sorry.com> wrote in message
news:eKaSTH0ODHA.2248@TK2MSFTNGP11.phx.gbl...usercontrols,> 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 allwhat> 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 knowmandate> controls I going to be on the page until runtime. I suppose I couldvarybyparam> GUIDs for VaryByParam, but that seems kinda hacky.
>
> RMD
>
> "Justin Dutoit" <anon@anon.com> wrote in message
> news:OsVRwIrODHA.1748@TK2MSFTNGP11.phx.gbl...> > What about a parameter called Clear? Set it to 1, then you canof> > ...
> >
> > Justin Dutoit
> >
> > "RMD" <rmd@nospam.sorry.com> wrote in message
> > news:Ox2t2bpODHA.2460@TK2MSFTNGP10.phx.gbl...> > > I am creating a portal that uses UserControls as each "portlet". Eachmenu> are> > > these UserControls is autonomous in the sense that whether or not they> has> > > 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> > a> > > nifty little menu. What I would like to do is have an item on thisitem> particular> > > called "Refresh" which forcefully clears the output cache for a> > > portlet.
> > >
> > > I'm hoping that I can do something like capture the "Refresh" menudoes> > > event and pass that information to the containing page, which thenhow> > > something like "somePortlet.Cache.Clear()".
> > >
> > > I've investigated the various "VaryBy" mechanisms, and I'm not sure> I>> >> > > can use these to accomplish what I want.
> > >
> > > Thanks,
> > > RMD
> > >
> > >
> >
>
Justin Dutoit Guest



Reply With Quote

