Auto Refresh Page

Discussion in 'ASP General' started by Scott, Dec 14, 2003.

  1. Scott

    Scott Guest

    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?
    Scott, Dec 14, 2003
    #1
    1. Advertising

  2. > 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/
    Aaron Bertrand [MVP], Dec 14, 2003
    #2
    1. Advertising

  3. Scott

    Scott Guest

    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]" <> wrote in message
    news:...
    > > 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/
    >
    >
    Scott, Dec 14, 2003
    #3
  4. Scott

    MSFT Guest

    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.)
    MSFT, Dec 15, 2003
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marcus

    auto refresh page or frame

    Marcus, Apr 1, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    4,065
    Marcus
    Apr 1, 2004
  2. Marcus Malmgren

    RE: auto refresh page or frame

    Marcus Malmgren, Apr 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    446
    Marcus Malmgren
    Apr 2, 2004
  3. Ronald S. Cook

    How auto refresh page but with new data?

    Ronald S. Cook, Apr 28, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    2,701
    gerry
    Apr 30, 2006
  4. jack-e

    Auto Refresh ASPX Page

    jack-e, Oct 4, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    3,796
    Eliyahu Goldin
    Oct 5, 2006
  5. linkswanted
    Replies:
    1
    Views:
    902
Loading...

Share This Page