By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,373 Members | 1,792 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,373 IT Pros & Developers. It's quick & easy.

Auto Refresh Page

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
> 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

P: n/a
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

P: n/a
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.