Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 3rd, 2005, 06:08 AM
Authorized User
 
Join Date: Nov 2005
Location: , , .
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to x_ray
Default Auto refreshing data on asp page

hi all,
i have an asp page that generates results depending on a user input. the problem is that when many users are updating the databse, i want the asp page to refresh itself when the database is updated or, if this is not possible,to refresh itself say every 3 minutes.
Note: i am using javascript with asp, and SQL server 2000.
i would appreciate any reply,

  #2 (permalink)  
Old December 4th, 2005, 05:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Melbourne, Vic, Australia.
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

are you assuming that a user will have your page open continuously for more than 3 minutes (which would probably be unlikely)? If so, you could use a meta refresh:
Code:
<META HTTP-EQUIV=Refresh CONTENT="180">
Otherwise, the data should refresh every time the user opens the page.
To let the users know how up to date / out of date the data is, you could put the date & time on the page, such as:
Code:
<p>Page created at <% =Now() %>. <a href="#">Refresh</a></p>
I am a loud man with a very large hat. This means I am in charge
  #3 (permalink)  
Old December 7th, 2005, 07:00 AM
Authorized User
 
Join Date: Nov 2005
Location: , , .
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to x_ray
Default

Quote:
quote:Originally posted by Steven
 are you assuming that a user will have your page open continuously for more than 3 minutes (which would probably be unlikely)? If so, you could use a meta refresh:
Code:
<META HTTP-EQUIV=Refresh CONTENT="180">
Otherwise, the data should refresh every time the user opens the page.
To let the users know how up to date / out of date the data is, you could put the date & time on the page, such as:
Code:
<p>Page created at <% =Now() %>. <a href="#">Refresh</a></p>
I am a loud man with a very large hat. This means I am in charge

thanks a lot steven for both tips, i will try them and let you know(although sure they will gonna work)



Similar Threads
Thread Thread Starter Forum Replies Last Post
refreshing an asp page while redirecting netfresher Classic ASP Basics 0 June 14th, 2006 07:34 AM
auto refreshing using web service asajids78 .NET Web Services 0 September 11th, 2005 03:17 AM
problem in auto page navigation of data grid in AS kranthipriya ASP.NET 1.x and 2.0 Application Design 1 February 23rd, 2005 08:01 PM
refreshing XML withour refreshing the page sasidhar79 XML 1 January 12th, 2005 05:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.