Solved

Page refresh when new record is inserted into the database

Posted on 2013-05-28
7
601 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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
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

Backup Your Microsoft Windows Server®

Backup 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.

Question has a verified solution.

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

Suggested Solutions

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now