473,321 Members | 1,667 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Sometimes aspx page not refreshing

I have a simple aspx web page that displays numbers obtained by a SQL
database lookup (sales and costs entered). The database access occurs at
the top of the page and I want it to run every time the page is Postback.
All VB code is between <% and %at top.

The page displays fine at first load of page but some workstations are not
seeing the new numbers each time. The page is using Javascript setTimeout
method as shown below:

window.setTimeout("__doPostBack('LBtnRefresh', '')", 60000);

I have a LinkButton ID=LBtnRefresh that has a PostBackURL = this same page.

Is this some sort of cache issue or something? How can I fix it so it
always refreshes the user? Thanks.

David
Oct 5 '07 #1
1 1639
Try putting a unique querystring value at the end of the url so that caching
will be prevented, e.g.
PostBackURL="pagename.aspx?a="+DateTime.Now.Ticks. ToString();

-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"David C" wrote:
I have a simple aspx web page that displays numbers obtained by a SQL
database lookup (sales and costs entered). The database access occurs at
the top of the page and I want it to run every time the page is Postback.
All VB code is between <% and %at top.

The page displays fine at first load of page but some workstations are not
seeing the new numbers each time. The page is using Javascript setTimeout
method as shown below:

window.setTimeout("__doPostBack('LBtnRefresh', '')", 60000);

I have a LinkButton ID=LBtnRefresh that has a PostBackURL = this same page.

Is this some sort of cache issue or something? How can I fix it so it
always refreshes the user? Thanks.

David
Oct 5 '07 #2

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

Similar topics

5
by: Tom | last post by:
Hi, I have an iframe that gets its own width from document.body.clientWidth (on onLoad). In Firefox, clientWidth always has an expected value, but in IE 6 it's sometimes 0! It seems to depend...
4
by: Ersin Gençtürk | last post by:
Server : WEB System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The View State is invalid for this page and might be...
1
by: Ersin Gençtürk | last post by:
We couldn't find why these errors happen.They doesn't appear everytime.And they appear different pages at different times.Is there somebody know why these happenes ? First user gets this error :...
8
by: Ricky K. Rasmussen | last post by:
Hi NG, In a very large ASP.NET application i use popups for displaying diffrent kinds of dialogs. But sometimes when a Popup is opened it's like the aspx page is never executed and the popup...
4
by: Mike | last post by:
On my web app I allow the user to enable or disable the refreshing of the page. I notcied that if the browser window is minimized the page does not refresh, or if it sits a long time without any...
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
0
by: comp.lang.php | last post by:
<? header('Pragma: no-cache'); // ENSURE CLIENT-SIDE CACHE FLUSHING $url = "$projectURLPath/index.php"; if ($_REQUEST) $url .= '?logoutMsg='. urlencode($_REQUEST); if ($willAuthenticate &&...
3
by: =?Utf-8?B?QXJ1bmVzaCBNb2hhbg==?= | last post by:
Hello All: I have an ASPX A.ASPX where I am displaying realtime data using embedded ASPX page B.ASPX. When I go to next page/previous page from A.ASPX page, I am able to go to next/previous...
1
by: David C | last post by:
I have an aspx page with a GridView that has an onclick attribute added to a LinkButton. The onclick calls the following Javascript function that opens a new window to edit information: ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.