2
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" />
}
By clicking the button btn-Enviar
the whole form
is sent minhaAction
in meuController
.
My goal is that by clicking the button btn-Enviar2
, that same form
be sent to outraAction
in meuController
, then there I could receive the same FormCollection
.
How could I do the function enviarForm
?
@bigown on db? I posted again, ended up publishing 2 times, so I deleted one, sorry...I could reply yes, thanks
– Rod