473,779 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

output cache problem : when any user control registered on a page page not cached

hi all
i have a strange problem with caching

very simple cache test page with fallowing code is not cached at
all(browser/server whatever):
<%@ Register TagPrefix="uc1" TagName="NewHom ePageModule"
Src="~/Home/Module/NewHomePageModu le.ascx" %>
<%@ Page language="c#" %>
<%@ OutputCache Duration="60" VaryByParam="*" %>
<h1>test form</h1>
<h2><%=DateTime .Now%></h2>

but when you remove this line :
<%@ Register TagPrefix="uc1" TagName="NewHom ePageModule"
Src="~/Home/Module/NewHomePageModu le.ascx" %>

and i stay with :

<%@ Page language="c#" %>
<%@ OutputCache Duration="60" VaryByParam="*" %>
<h1>test form</h1>
<h2><%=DateTime .Now%></h2>

the caching starting to work correctly

the stranger thing is that happening only on production box
(IIS6/ASP.Net 1.1) and on dev box (IIS5/ASP.NET 1.1) code work properly
in both cases

i gave here example as simple as posssible, actually the whole caching
framework we developed is not working on production machine

please help anybody has an idea or direction to trouble-shoot this
Thanks much anyway for your attention
--------------------------------
From: Yevgeniy Kuznetsov

Nov 23 '06 #1
0 1089

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

Similar topics

21
2670
by: Bill H | last post by:
I have a routine that displays 60 items (with thumbnails) per page. You can click any item and displays a new page with item details. When the user back pages it runs the query again to display all the items. Is there a way to cache that page and images so that second query doesn't execute? I do offer a pop-up window using Java but is not the default and not used by many. I'd really like to get rid of that second query. ;) TIA
0
2136
by: Martin | last post by:
Hi. I had a very frustrating afternoon and evening but I have got it all under control now so all of a sudden I am in a good mood. I want to share some insights on output caching with you lot. After looking at the use of the OutputCache directive and tinkering with it a bit I found its usability.very limited. Think of it: it is okay for static content. Well that's nice but no big deal. Static content is cheap anyway, the file system...
1
1056
by: Jon | last post by:
Hi, I have a page with 2 user controls, one of which is output cached for an hour the other isn't cached atall. I add a datagrid to the page which I want output cached for 10 minutes can I set output caching at the page level to 10 minutes and have the 2 controls cache as specified or would I need to put the datagrid in a user control with output cache of 10 minutes ? Cheers, Jon
2
1352
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 acchieve this: Only one Page_Load, and then the output of the control is cached within the Cache, accessible via a programatically generated
8
1960
by: Raed Sawalha | last post by:
Hi, I have a strange problem with a usercontrol on a page. The usercontrol dispalyes three categories (From a database) when the user clicks a category they see all the products in a shop for that category, the results are paged 10 to a page and the user can page them. As this "Category" usercontrol hardly ever changes I wanted to setup up caching for it. However I realised that when the user clicks a ctageory it is selected and...
1
1024
by: z. f. | last post by:
Hi, i'm writing a user control that lives inside a page, and i want to cache the output of the control. is it possible to cache the control's output using a property on the control. so that when the property is like the property of the cached data, the cached data is being outputed. if the property is not in the cache already, a new data is outputed.
10
9045
by: hughestroop | last post by:
I have updated my CSS and if you view the main page with the old css cached, it breaks the page. Is there any way to force viewers that have the old css cached to get the new css? Our viewers are NOT tech savvy, and wouldn't know what a "hard refresh" is, nor that it needed to be done.
2
2185
by: aptenodytesforsteri | last post by:
I have an ASP.NET 2.0 application I've localized to English, French, German, and Italian. I used resource (.resx) files. Most of the site is static content, easily 90% of it, so I thought output caching would be useful. I implemented output caching at 60 seconds.
2
2678
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev machine running winXP sp2 and VS2005. I'm using a c# 2.0 winforms app which talks to a c#2.0 asp.net app that also contains 1 web service. Note: the webpage and web service are located side by side in the same web app.
0
10306
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7485
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6724
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.