Page Refresh Causes Duplicate POST in ASP.NET Applications

asp.net

Solution

Once you have handled a post back to a page, best practice is to then redirect so that you can't have the data posted a second time using the "refresh" button. This is common to all web develoment, not just ASP.NET.

Problem

i have an application in which i am adding a new record and the record is added two times if i am pressing refresh button. I am clearing the cache but i am having the same problem. what to do?

Original source