PUT or DELETE verb in ASP.NET MVC on HTML form

后端 未结 3 899
北恋
北恋 2021-01-04 07:42

I have a simple user registration form, with two fields, one for username and another for the password. I have a controller called UserController which has thes

3条回答
  •  臣服心动
    2021-01-04 08:04

    You could use $.ajax to submit the form with the correct verb

    Here is an example

提交回复
热议问题