asp.net mvc ajax post - redirecttoaction no funciona
Usé el siguiente código en uno de mis controladores;
if (Request.IsAjaxRequest()) {
return RedirectToAction("PreviewAndSendEmail");
}
Lo depuré y se trata de la línea de retorno, pero no se produjo la redirección. ¿Es posible hacer eso dentro de Ajax.BeginForm? Aquí está el código de afeitar;
using(Ajax.BeginForm( new AjaxOptions { LoadingElementId = "loading" })) {
<b>Choose E-mail Template : </b>@Html.DropDownList("emailtemps")<br /><br />
<input type="submit" value="Preview & Send" />
<span id="loading" style="display: none;">
<img title="loading..." alt="load" src="@Url.Content("~/Content/App_Icons/gifs/loading.gif")"
</span>
}