Wednesday, September 7, 2011

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 RedirectSolution is the best.

Use following piece of code, it will work efficient even with URL displayed with URLRewriting
Response.Redirect(Request.UrlReferrer.AbsoluteUri.ToString());

No comments:

Post a Comment