How do I prevent multiple form submission in .NET MVC without using Javascript?

后端 未结 13 2153
情深已故
情深已故 2020-11-28 02:36

I want to prevent users submitting forms multiple times in .NET MVC. I\'ve tried several methods using Javascript but have had difficulties getting it to work in all browser

13条回答
  •  孤独总比滥情好
    2020-11-28 03:00

    In its self, no, however depending on what the controller is actually doing, you should be able to work out a way.

    Is a record being created in the database that you can check for to see if they've already submitted the form?

提交回复
热议问题