473,503 Members | 2,157 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.redirect (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=”none”’ (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 1328
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.Redirect("grid.aspx?K12dU33jb1kjj22")

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.redirect (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=”none”’ (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.Redirect("grid.aspx?K12dU33jb1kjj22")

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
1351
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...
13
9396
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...
2
2430
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==----...
5
3122
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...
12
1629
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...
3
1942
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...
21
2276
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...
15
2456
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...
0
1266
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...
0
7205
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,...
0
7349
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...
1
7008
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...
0
7467
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...
1
5022
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...
0
3177
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...
0
1521
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 ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.