Solved

Page refresh when new record is inserted into the database

Posted on 2013-05-28
7
603 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 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.
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 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.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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 83

Expert Comment

by:Dave Baldwin
ID: 39202849
No problem.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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…

772 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