472,143 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 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 12750
> 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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Lew | last post: by
3 posts views Thread by blu3g85 | last post: by
2 posts views Thread by MattB | last post: by
7 posts views Thread by Brian | last post: by
4 posts views Thread by jack-e | last post: by
3 posts views Thread by tinuananster | last post: by
2 posts views Thread by =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post: by
reply views Thread by Saiars | last post: by

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.