Avoid Inserting Duplicate Record on Page Refresh
Problem: User Input Form Inserts Duplicate Record on Page Refresh.Solution:
This Problem can have 4 different solution, as mention in Article Preventing Duplicate Record on Page Refreshed
According to me among all mention solution, Page Redirect Solution is the best.
Use following piece of code, it will work efficient even with URL displayed with URLRewriting