Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Caching Design Issue

Reply
Thread Tools

Caching Design Issue

 
 
RMD
Guest
Posts: n/a
 
      06-24-2003
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


 
Reply With Quote
 
 
 
 
Justin Dutoit
Guest
Posts: n/a
 
      06-25-2003
What about a parameter called Clear? Set it to 1, then you can varybyparam
....

Justin Dutoit

"RMD" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
 
RMD
Guest
Posts: n/a
 
      06-25-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> What about a parameter called Clear? Set it to 1, then you can varybyparam
> ...
>
> Justin Dutoit
>
> "RMD" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Justin Dutoit
Guest
Posts: n/a
 
      06-26-2003
Maybe you could make a token change to some data the user control depends
on.

hth
Justin

"RMD" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > What about a parameter called Clear? Set it to 1, then you can

varybyparam
> > ...
> >
> > Justin Dutoit
> >
> > "RMD" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > 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
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
mai86 mai86 is offline
Junior Member
Join Date: Oct 2008
Posts: 2
 
      10-08-2008
I have a web page designed in HTML and I want to use the buttons on this page to write my asp.net code. I triad to make this control "run at server "but it doesn't work it's not allowing me to write vb.net code to this control. Please give me some help.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Disable page caching without disabling caching of jpegs andstylesheets etc JimLad ASP .Net 3 01-21-2010 10:13 AM
CFP - Journal of Systems Architecture, Embedded Software Design(Elsevier), Special Issue on Hardware/Software Co-Design Juan A. Gomez-Pulido VHDL 0 08-24-2009 02:11 PM
2nd. CFP - Journal of Systems Architecture - Embedded Software Design(Elsevier) - Special Issue on HARDWARE/SOFTWARE CO-DESIGN Juan A. Gomez-Pulido VHDL 0 05-24-2009 03:14 PM
Fragment Caching inside page caching? Troy Simpson ASP .Net 0 01-19-2004 11:57 AM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM



Advertisments