I have 2 forms in my main layout. The first form is in the header: @using (Html.BeginForm("Jump", "Common", FormMethod.Post, new { id = "JumpForm" } )) { @Html.AntiForgeryToken() ............. }

The second one wraps around my body like this: @using (Html.BeginForm()) { @Html.AntiForgeryToken() @Html.ValidationSummary(true) @RenderBody() }

When the html generates, the first form is generated like this: form action="/?action=Jump&controller=Common" id="JumpForm" method="post"

And the second generates correctly to my active page.

I want both forms to go to different pages. The second one works correctly, the first one does not. Any ideas?

Related posts

Recent Viewed