Last post Aug 15, 2018 02:13 PM by juned39
May 10, 2018 11:09 AM|pointtoshare|LINK
In my MVC 5 app I got the following error when I press the browser Back button after opening a form. How can I prevent this error. I want, when user press browser Back button they will get the Index page or previously opened page. I tried putting the following
code in Global.asax page but didn't work.
protected void Application_BeginRequest()
This webpage requires data that you entered earlier in order to be properly displayed. You can send this data again, but by doing so you will repeat any action this page previously performed.
May 10, 2018 11:24 AM|mgebhard|LINK
This problem is commonly handled using the Post/Redirect/Get pattern.
May 11, 2018 04:57 AM|pointtoshare|LINK
Thanks for your response. I probably use the same pattern, see below-
Please note that, I get it intermittently but some other get always.
May 24, 2018 06:55 AM|pointtoshare|LINK
The scenario is: if I open a form to create/edit or go to any other view and hit browser back button it generates the mentioned error. It doesn't always happen, it happens about 30-40% times.
Could anybody suggest any solution on the subject matter please?
Aug 15, 2018 02:13 PM|juned39|LINK
Refer to below post and get methods to pass the data to keep the dynamic flow and static client side resubmission of data