Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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,

Reply With Quote
  #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
Reply With Quote
  #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)

Reply With Quote
Reply


Thread Tools
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
refreshing an asp page while redirecting netfresher Classic ASP Basics 0 June 14th, 2006 08:34 AM
auto refreshing using web service asajids78 .NET Web Services 0 September 11th, 2005 04: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



All times are GMT -4. The time now is 02:09 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.