asp.net - Two Html.BeginForm() on one Razor View -
i'm developping website in mvc 4.5 razor, , need put 2 html.beginform on same page. i've noticed , read on internet, 2 forms on same page ain't working finely.
i tried use runat='server' ain't working either, saw post : http://www.quora.com/how-do-i-use-2-forms-in-a-single-asp-net-page-running-on-a-server dude saying :
in mvc, it's extremely easy since use form tag. :-)
sadly doesn't precise should done, , it's clue still have.
so if has idea of how ...
some more precisions :
both of @using (html.beginform) working finely on separated pages, , they're submitting totally different datas. thought mixin them , handle mix in controller's method, way aweful :/
thanks !
your forms should both fine, need specify action should post to, rather leave default, e.g.:
@html.beginform("action1", "controller1") { ... fields post action1. } @html.beginform("actionx", "controllerx") { ... fields post actionx }
Comments
Post a Comment