How do you handle multiple submit buttons in ASP.NET MVC Framework?

后端 未结 30 3026
一个人的身影
一个人的身影 2020-11-21 07:16

Is there some easy way to handle multiple submit buttons from the same form? For example:

<% Html.BeginForm(\"MyAction\", \"MyController\", FormMethod.Pos         


        
30条回答
  •  悲哀的现实
    2020-11-21 07:43

    If you do not have restrictions on the use of HTML 5, you can use the

    Reference: http://www.w3schools.com/html5/att_button_formaction.asp

提交回复
热议问题