If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Refresh a list box

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-08, 08:46
christyxo christyxo is offline
Registered User
 
Join Date: Oct 2003
Location: London
Posts: 291
Question 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
Reply With Quote
  #2 (permalink)  
Old 06-02-08, 09:37
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
I think this is what you want - it's been a while
Code:
Response.Expires = 0
Response.Expiresabsolute = Now() - 1
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 06-02-08, 09:38
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
__________________
George
Twitter | Blog
Reply With Quote
  #4 (permalink)  
Old 06-02-08, 12:15
christyxo christyxo is offline
Registered User
 
Join Date: Oct 2003
Location: London
Posts: 291
Beautiful. Thank you.

<%response.Expires=-1%>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On