Solved

how to stop record from being re-inserted from details view, after page gets refreshed

Posted on 2014-01-31
1
237 Views
Last Modified: 2014-01-31
I have a question. After I insert the new record, and if I refresh the page (browser refresh button) then the record gets inserted again.

How can I stop this from happening? can some examples be shown?

Thank you very much.
0
Comment
Question by:metropia
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39824766
Simple solution is to redirect to the same page after the insert so there is no posted data.
If you want a slightly more complicated way
http://www.codeproject.com/Articles/10240/Detecting-Page-Refresh
0

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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