I have used to have
@using (Html.BeginForm())
{
<input type="submit" formaction="/home" />
}
And everything was brilliant but with Ajax form
@using (Ajax.BeginForm())
{
<input type="submit" formaction="/home" />
}
submitted form action doesn’t reflect formaction of input.
Where is the problem and how can i make ajax form work with different form actions?
It turns out, this functionality wasn’t implemented in MVC3.
One of workaround – rewrite with jQuery rendered
data-ajax-urlattribute, it will appear when you specifyUrlproperty inAjaxOptionsofBeginFormmethod.