What methods are available to stop multiple postbacks of a form in ASP.NET MVC?

后端 未结 6 1482
后悔当初
后悔当初 2020-12-12 19:48

A common web problem is where a user clicks the submit button of a form multiple times so the server processes the form more than once. This can also happen when a user hit

6条回答
  •  半阙折子戏
    2020-12-12 20:14

    Along with the disabling of buttons, you can add a transparent div over the entire web page so that clicking does nothing. We do this at my work and add a little friendly label saying processing request..

提交回复
热议问题