Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2003
    Location
    London
    Posts
    341

    Question Unanswered: Refresh a list box

    Hi guys,

    I need a line that will enable me to refresh a listbox when a page opens or loads, or something that I can write where the page will simply not cache (if this is even possible).

    The problem I have is that everytime I visit one of my pages, ir produces a listbox of events retrieved from a database. I then navigate to another page and submit some more information into the database, before returning to the original page with the drop down list. The drop down list however is still holding all the old data within it, but I need it to display an updated list.

    If I hit the refresh button the list updates to show the correct details but I don't want to have to manually refresh the page each time I visit it.

    Is there a way that I can combat this?

    Christy

    Christy

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    I think this is what you want - it's been a while
    Code:
    Response.Expires = 0
    Response.Expiresabsolute = Now() - 1
    George
    Home | Blog

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    George
    Home | Blog

  4. #4
    Join Date
    Oct 2003
    Location
    London
    Posts
    341
    Beautiful. Thank you.

    <%response.Expires=-1%>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •