0

I am developing a ASP.NET application..i have developed three pages in my application..after saving to database ,if i press the back button in browser i am getting enter image description here

How to avoid this error in ASP.NET???

user2536023
  • 165
  • 1
  • 4
  • 14
  • 1
    The previous page was doing a POST. Employing the [PRG Pattern](http://en.wikipedia.org/wiki/Post/Redirect/Get) will eliminate the error. – mr_plum Nov 08 '13 at 18:45
  • This is happening because of postbacks that happen in asp.net webforms as part of the page lifecycle. – Aniket Inge Nov 08 '13 at 18:45
  • 1
    See answers for [How do I implement the Post/Redirect/Get pattern in asp.net WebForms?](http://stackoverflow.com/questions/919516/how-do-i-implement-the-post-redirect-get-pattern-in-asp-net-webforms). – Karl Anderson Nov 08 '13 at 18:48
  • This is normal, don't fight it but plan around it. Above all do not try to change functionality of back button. On E-Commerce checkout pages I always put a notice in red font warning users not to hit the back button. Pizza Hut does this also. – IrishChieftain Nov 08 '13 at 18:53

0 Answers0