472,353 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Help! User control caching not working in Mozilla, works in IE

Meant to post in here as well...

Hi there,

I have a user control that brings back some links from a database
based on a combination of querystring parms, so I'm using VaryByParm
to differentiate between the pages. The code is like so:

<%@ OutputCache Duration="3600" VaryByParm="scid;cid" %>

(you get the idea)

The control itself examines the querystring for the presence of these
parms, and calls a stored proc with varying parms based on what is
found, i.e. passes in different parms based on whether scid, cid, or
nothing is present. The resulting SqlDataReader then returns targeted
links back to the browser.

Clearly, I don't want a database lookup on every single page, so
caching is a shoe-in here. So, I put the cache instruction in the page
as above, and then had SQL Profiler working against the db. As I
loaded default.aspx (which doesn't have the cid or scid parms), I saw
a call to my stored proc. As I loaded the rest of the pages that
didn't have the cid or scid parms on the querystring, I didn't see the
stored proc called again, which is what I was expecting. So far, so

Next, the pages with the cid and scid parms - again, no problems :-) I
saw the stored proc called for each page I clicked with varying parms,
and when I revisited the page, the stored proc was not called, also
what I was expecting.

As an aside, one thing that I wasn't expecting happened - the db call
gets executed again when the page performs a postback - why?

Anyway, back to the real problem: I then fired up Mozilla and tested
PAGE***, in other words, no caching...

Can anyone assist?

Kind regards,

Mike Kingscott

PS - If i use VaryByParm="None" on a user control, am I right that it
creates a cached version for every *page* it is used on? I have an
ad-rotator that should at least display a different ad each page... I
would only cache this for about 10 minutes though...
Nov 17 '05 #1
0 978

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

Similar topics

by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an...
by: Sarir Khamsi | last post by:
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd?...
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have...
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it...
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright",...
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting...
by: dixie | last post by:
Help, I'm really out of my depth here (not unusual I hear you say :-). I have just installed HTML Help in an application. I told it in the Project...
by: JJ | last post by:
Do you all use HTML help workshop to create your help system. I am finding it quite clumsy to use. Mayeb because I am not used to using it. Do...
by: Mark | last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my home computer has an abbreviated help screen not 2% of the help on my...
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more:...
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

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.