ASP.NET MVC Ajax.BeginForm eats params of submit button clicked. Looks like bug

后端 未结 5 1560
粉色の甜心
粉色の甜心 2021-02-11 04:33

If you are using Ajax.BeginForm() with multiple submit buttons similar to this:

// View.aspx
<% using (Ajax.BeginForm(\"Action\", \"Controller\", 
                    


        
5条回答
  •  一生所求
    2021-02-11 05:05

    A possible workaround could be to have each button in a seperate form routed to different actions on your controller. Not ideal but could work.

提交回复
热议问题