473,288 Members | 1,750 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,288 software developers and data experts.

Auto Refresh Page

I have a clickable graph that resides on page 1. If user clicks a data point
on the graph, the page runs again yeilding a 2nd graph that shows a more
detailed graph.

Problem is, I have a recordset table on the 2nd graph page and because the
user gets to it by clicking the graph, the page doesn't properly post to
render the recordset table. I can click "Refresh" on 2nd page and table
displays fine.

Is there an ASP refresh command that I could possibly run to mimick a
"Refresh" or F5?
Jul 19 '05 #1
3 12866
> I have a clickable graph that resides on page 1. If user clicks a data
point
on the graph, the page runs again yeilding a 2nd graph that shows a more
detailed graph.

Problem is, I have a recordset table on the 2nd graph page and because the
user gets to it by clicking the graph, the page doesn't properly post to
render the recordset table. I can click "Refresh" on 2nd page and table
displays fine.
Well, if you mean that it is not showing the newest results, you could try
to prevent caching.
http://www.aspfaq.com/2022

Otherwise, could you explain what's different about the first time they load
the page, and when they click refresh. I don't know what "properly post to
render the recordset table" means. What recordset? What table? Could you
show enough code for us to reproduce the problem?
Is there an ASP refresh command that I could possibly run to mimick a
"Refresh" or F5?


Yes, you could add a refresh header with a very short timeout.
http://www.aspfaq.com/2158

But I suggest you fix the problem, rather than band-aid it.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #2
All actions happen on parent page called "dt_chartc.asp". Below code
displays the clickable graph that user clicks, then the page displays the
2nd graph. The 1st and 2nd graph actually reside in the file
"dt_chartcx.asp", it displays different results depending on variables.

Problem is that on the users "click", the parent page only shows the linked
graph contained inside "dt_chartcx.asp" and I have a simple table below the
graph showing the data that makes the graph. After clicking the graph, I can
hit "Refresh" and the data table will display.

I wish I could give you more code, but it's all related to this graph
control and wouldn't run. To sum it up, because the graph control is a link
and also that it produces it's own query string that can't be added to, I
can't use some of the asp form tricks that we usually use.

Even if I could make the 2nd level display know about a refresh variable,
how could I force a page to refresh 1 time, just as it would if I hit the
refresh button?

<a href='http://10.0.9.2/myserver/dt_chartc.asp'>

<img src='http://10.0.9.2/myserver/dt_chartcx.asp' ISMAP BORDER='0'>
</a>
"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:OT*************@tk2msftngp13.phx.gbl...
I have a clickable graph that resides on page 1. If user clicks a data point
on the graph, the page runs again yeilding a 2nd graph that shows a more
detailed graph.

Problem is, I have a recordset table on the 2nd graph page and because the user gets to it by clicking the graph, the page doesn't properly post to
render the recordset table. I can click "Refresh" on 2nd page and table
displays fine.


Well, if you mean that it is not showing the newest results, you could try
to prevent caching.
http://www.aspfaq.com/2022

Otherwise, could you explain what's different about the first time they

load the page, and when they click refresh. I don't know what "properly post to render the recordset table" means. What recordset? What table? Could you show enough code for us to reproduce the problem?
Is there an ASP refresh command that I could possibly run to mimick a
"Refresh" or F5?


Yes, you could add a refresh header with a very short timeout.
http://www.aspfaq.com/2158

But I suggest you fix the problem, rather than band-aid it.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #3
HI Scott,

To refresh a page, you may call some client script like:

Windows.Navigate "http://10.0.9.2/myserver/mypage2.asp"

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #4

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

Similar topics

1
by: Lew | last post by:
Hi all, I'm trying to create a page that has a user-selectable page auto-refresh option (IE 5.5). Essentially, it's a page that contains a checkbox, when the user checks the checkbox, I'd like...
3
by: blu3g85 | last post by:
how to redirect a page? as in after a few sec, the page will auto direct u to another page. ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----...
2
by: MattB | last post by:
I have a page I've migrated from HTML to asp.net that would auto-refresh every 30 seconds. I did this by putting the following in the <head> section: <meta name="refresh" content="30"> But now...
7
by: Brian | last post by:
hello, I am looking for a way to auto refresh a web page that I created, but also let the user choose to stop the auto refresh. I can not figure out how to stop the auto refresh. Any help would...
4
by: jack-e | last post by:
How do I auto refresh a page a particular time of the day?
3
by: tinuananster | last post by:
Hi, I need to auto refresh a page after a specific time interval. When the page is accessed the first time, a request parameter is null and hence it gets redirected to a welcome page (static...
3
by: lezzo | last post by:
Hi Guys, I am new to this forum and find very interesting. I need your help in one of the script. I got a MySQL table bid_amount, and i want that if some new data comes in this table and...
1
by: BibhuAshish | last post by:
hi, I have designed a jsp page. This jsp is able to auto refresh after 5 second. But i want after 5th times of auto refreshment the table present inside the body should change. Can anybody...
2
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hi I have a web page that has a TreeView on it. If I DONT'T expand the TreeView nodes, the auto refresh works nicely: my page gets refreshed every minute. As soon as I expand a node on the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
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...

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.