Auto Refresh Page

S

Scott

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?
 
A

Aaron Bertrand [MVP]

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.
 
S

Scott

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top