Using Html.BeginForm to post to the current controller

后端 未结 3 1638
温柔的废话
温柔的废话 2021-01-12 10:37

I have a partial that is used in several views. The partial contains forms. The action when a form is submited is allways the same, but the controller thats contains the act

3条回答
  •  悲&欢浪女
    2021-01-12 11:13

    The easiest way to do this would be to simply call BeginForm() with no parameters.

提交回复
热议问题