With the use of ASP. NET server controls, you suddenly go to the MVC framework and encounter such a problem.
For example, when the Internet is slow, users frequently click the Submit button, or press F5 to refresh the page and so on. The workaround is simple.
Solution Solutions
1. In the page generation, for example, the index action, open a session, store a unique value (in general. NET is used in the Guid.NewGuid () this method).
2. Also store this value in the session in the Hidden text field.
3. Post, post to another action, the action does not regenerate the session, just compare the existing session with the data in the submitted hidden text box.
The HttpPost method matches the value in the hidden text field to the value in the session and, if it is the same, commits correctly. Inconsistent, exception handling is performed.