I have the following form:
@using (Ajax.BeginForm("minhaAction", "meuController", new AjaxOptions()
{
HttpMethod = "POST",
OnFailure = "alert('Erro!')",
OnSuccess = "TrabalharResultado"
}, new { id = "meuForm" } ))
{
...
...
...
<input type="submit" value="Enviar" id="btn-Enviar" />
<input onclick="enviarForm" type="button" value="Enviar Outro Action" id="btn-Enviar2" />
}
When you click the btn-Enviar
button all form
is sent minhaAction
to meuController
.
My goal is that by clicking the btn-Enviar2
button, that same form
is sent to outraAction
in meuController
, so there I could receive the same FormCollection
.
Home
How could I do function enviarForm
?