Page refresh when new record is inserted into the database

Posted on 2013-05-28
Last Modified: 2013-05-28
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
Question by:romsom
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
LVL 34

Accepted Solution

Paul MacDonald earned 500 total points
ID: 39202622
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.

Author Comment

ID: 39202653
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?
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39202665
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.
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

LVL 34

Expert Comment

by:Paul MacDonald
ID: 39202669
No, because the client (browser) is disconnected from the (web) server.

Author Closing Comment

ID: 39202699
Thank you very much.

Author Comment

ID: 39202784
I'm sorry DaveBaldwin; I noticed your comment only after I awarded all the points
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39202849
No problem.

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Html split(text) 2 50
Need a mirrored QA test site 2 95
ms sql and asp dates 5 43
Cannot get group page break to work in SSRS 2008R2. 14 40
There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: and…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question