Avoiding Duplicate form submission in Asp.net MVC by clicking submit twice

前端 未结 6 1682
情书的邮戳
情书的邮戳 2021-01-30 22:30

I am rendering a form in Asp.net MVC with a submit button. The page redirects after successful record addition into the database. Following is the code :-

[HttpP         


        
6条回答
  •  失恋的感觉
    2021-01-30 22:58

    Disable the button on Submit clicked. This can be done using JQuery/Java Script.

    Look at this example on how to do this.

提交回复
热议问题