Page refresh when new record is inserted into the database

My classic ASP page displays the records from a SQL Server database table. I wonder if it's possible for the page to auto-refresh every time when users insert a new record.
Thank you for your help
romsomAsked:
Who is Participating?
 
Paul MacDonaldConnect With a Mentor Director, Information SystemsCommented:
How would the page know a new record was inserted?

You could have the page auto-refresh...
     <meta http-equiv="refresh" content="30">
...where "content" is the time in seconds to refresh the page.
0
 
romsomAuthor Commented:
So I guess auto-refresh is the only solution, whether a record is inserted or not...
There's no way for the page to know if a new record was submitted?
0
 
Dave BaldwinFixer of ProblemsCommented:
No, the page in your browser is static HTML once you get it.  Unless you add javascript / AJAX that checks with the server or use the meta refresh, nothing will change on the screen.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Paul MacDonaldDirector, Information SystemsCommented:
No, because the client (browser) is disconnected from the (web) server.
0
 
romsomAuthor Commented:
Thank you very much.
0
 
romsomAuthor Commented:
I'm sorry DaveBaldwin; I noticed your comment only after I awarded all the points
0
 
Dave BaldwinFixer of ProblemsCommented:
No problem.
0
All Courses

From novice to tech pro — start learning today.