473,793 Members | 2,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Browser Caching Problem

I am currently experiencing a problem whereby browser caching seems to be
causing my page to be invalid.

I am using a standard DataGrid WebControl which is bound to a DataView
object. I use a link in the DataGrid control to go to a details page for the
record to edit a number of different fields for the record. After updating
the dataset and database, I use a response.redire ct (I’ve also tried
Server.Transfer ) to return to the first page with the DataGrid. The problem
is that the DataGrid does not reflect the changes I’ve made to the database.
If I step the page load procedure in debug mode, the DataGrid does update and
I see the new data. If I don’t, I don’t see the new data until I hit the
refresh button or click on the link to go to the page directly.

I’ve tried to use the HTML metatags ‘<meta http-equiv="Pragma"
content="no-cache">’ and ‘<meta http-equiv="expires" content="0">’ but they
don’t seem to work. I have the same problem if I’m using IE or Firefox.
I’ve also tried to use ‘OutPutCache Location=”non e”’ (which as I don’t think
is related) with no success.

Any help, ideas, comments, suggestions would be appreciated.

--
Jonathan
Jul 11 '06 #1
3 1340
Hi Jonathan,

Right now, I can think of one old school way of dealing with browser
(and even proxy) caching, which is to append the url with a random
query string to make it look unique to the browser, eg.

Response.Redire ct("grid.aspx?K 12dU33jb1kjj22" )

Collin Chung
jlotmar wrote:
I am currently experiencing a problem whereby browser caching seems to be
causing my page to be invalid.
Jul 12 '06 #2
An Update since yesterday...

I've set some values in the PageLoad procedure and found that even though
the datgrid does not refresh, the values in the page load procedure do. So,
for example, I create an HTML comment with the current date/time the FormLoad
procedure ran and that is updated every time as expected. But the datagrid
is seems to be the only part being cached.
--
Jonathan
"jlotmar" wrote:
I am currently experiencing a problem whereby browser caching seems to be
causing my page to be invalid.

I am using a standard DataGrid WebControl which is bound to a DataView
object. I use a link in the DataGrid control to go to a details page for the
record to edit a number of different fields for the record. After updating
the dataset and database, I use a response.redire ct (I’ve also tried
Server.Transfer ) to return to the first page with the DataGrid. The problem
is that the DataGrid does not reflect the changes I’ve made to the database.
If I step the page load procedure in debug mode, the DataGrid does update and
I see the new data. If I don’t, I don’t see the new data until I hit the
refresh button or click on the link to go to the page directly.

I’ve tried to use the HTML metatags ‘<meta http-equiv="Pragma"
content="no-cache">’ and ‘<meta http-equiv="expires" content="0">’ but they
don’t seem to work. I have the same problem if I’m using IE or Firefox.
I’ve also tried to use ‘OutPutCache Location=”non e”’ (which as I don’t think
is related) with no success.

Any help, ideas, comments, suggestions would be appreciated.

--
Jonathan
Jul 12 '06 #3
I did try that and it still has the same problem. The datagrid information
does not appear to change even though the rest of the page is updating.
--
Jonathan
"Collin Chung" wrote:
Hi Jonathan,

Right now, I can think of one old school way of dealing with browser
(and even proxy) caching, which is to append the url with a random
query string to make it look unique to the browser, eg.

Response.Redire ct("grid.aspx?K 12dU33jb1kjj22" )

Collin Chung
jlotmar wrote:
I am currently experiencing a problem whereby browser caching seems to be
causing my page to be invalid.

Jul 12 '06 #4

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

Similar topics

2
1365
by: Simon Wigzell | last post by:
I have a dynamic website system that my clients use to change their webpage conten online. Sometimes the new change isn't visible right away to a browser. I have the following in every webpage's <HEAD> section: <META HTTP-EQUIV="EXPIRES" CONTENT="0"> which on previous investigation was supposed to be a solution for this. All I want is a definitive solution so that when a browser makes a call to my server for one of my pages, everything...
13
9462
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to intercept the key so that I can do stuff on the server side to make the new window behave correctly? (We have a JSP-based webapp which stores state in the session. Now if two windows access (and modify!) the same session, then madness will result....
2
2451
by: Michael G | last post by:
Can the browser back button or browser caching be turned on or off via php? Thanks, Mike ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
5
3139
by: R. Ian Lee | last post by:
I have an ASP.NET page that spawns a popup window using javascript's window.open. This works fine. It pops up, you enter some data, press save and everything saves as it should. But, if you click the button to open the popup again, then it opens with the values that were in it before the "save" was executed. I've determined that the problem is that IE is storing the page in it's local temporary internet files cache and isn't going to...
12
1655
by: Ken Varn | last post by:
Is there anyway within my web application that I can have all browser caching turned off for all aspx pages sent by my IIS server? I need to have all caching off in order for certain things to work properly, and I can't always rely on the user disabling their cache settings at the browser level. -- ----------------------------------- Ken Varn Senior Software Engineer Diebold Inc.
3
1952
by: lanem | last post by:
I am working on a ASP.NET 2.0 web site that has some PDFs that users can download. I'm using an HTTP module to see if the user has permission to view the PDF before loading it. This all works great. The problem is that once the PDF has been allowed through to the browser, it won't be denied to the next user. So, if one user is allowed to see it and then a user who is not allowed to see it uses the same browser, it comes through for...
21
2329
by: nsimeonov | last post by:
Hello, Does anyone have any idea how Gmail does this? I have a web application and people complain sometimes about some problems and most of the time it turns out it's the browser's cache being full. The application doesn't do anything really fancy and all it does is to set a cookie. I did a search and couldn't find anything except people explainin how I shouldn't do that. Even if the users have to add the server to the trusted zone...
15
2484
by: bvdb | last post by:
Hello, my web-application uses two frames, one with a list of database records, one with a record detail view. From the detail view there is "mark" function that will mark the respective record in the list frame (with a special color). Now this mark function is meant to toggle the mark status in the list frame, i.e. switch it on with the first click and off with the second. Problem is, the marking works, but the second click will not have...
0
1275
by: veerapureddy | last post by:
Hi All, I have some problem with browser caching I cleared the cache and also invalidated the session and redirected to the login page if the session has expired, in IE there is no problem if I go back and refresh it is redirecting to the login page, but in mozilla when I click the back button in the browser even its redirecting to the login page but when I refresh the page its showing me the recent page of that particular user loggid in,...
0
9671
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10433
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...
1
10161
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
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9035
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 projectplanning, coding, testing, and deploymentwithout 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
7538
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
5436
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...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4112
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

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.