Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Page refresh when new record is inserted into the database

Posted on 2013-05-28
7
Medium Priority
?
617 Views
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
0
Comment
Question by:romsom
  • 3
  • 2
  • 2
7 Comments
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 2000 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.
0
 

Author Comment

by:romsom
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?
0
 
LVL 84

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.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 34

Expert Comment

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

Author Closing Comment

by:romsom
ID: 39202699
Thank you very much.
0
 

Author Comment

by:romsom
ID: 39202784
I'm sorry DaveBaldwin; I noticed your comment only after I awarded all the points
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 39202849
No problem.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Screencast - Getting to Know the Pipeline

927 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