Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

16 Experts available now in Live!

Get 1:1 Help Now