Detect Browser Refresh vs. Form Submit in ASP.Net MVC 2
Posted
by Eric J.
on Stack Overflow
See other posts from Stack Overflow
or by Eric J.
Published on 2010-05-27T05:20:55Z
Indexed on
2010/05/27
5:31 UTC
Read the original article
Hit count: 578
asp.net-mvc-2
|refresh
I have an ASP.Net questionnaire application that resubmits data to the same page, showing a different question each time. There are BACK and NEXT buttons to navigate between questions.
I would like to detect when the form is submitted due to a browser refresh vs. one of the buttons being pressed. I came across a WebForms approach but don't know how to apply those principals in an MVC 2 application since page events aren't available (as far as I know... I'm pretty new to Microsoft's MVC model).
How would one apply that principle to MVC 2? Is there a better way to detect refresh?
© Stack Overflow or respective owner