Solved

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

Posted on 2014-01-31
1
238 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Switching Visual Studio 2015 to normal debug display 3 38
edit .asp files 5 31
Need syntax help building hyperlink 2 25
ASP.NET MVC - Views 3 20
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

860 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