I have a problem with Ajax.BeginForm. I have a form with submit and a button that updates a partial view.
What I'm trying to do is that I can use the following return statements in the same Action.
// button activates this return PartialView("PartialViewName", data);
and
// submit activates this return Redirect(model.Url);
Now the problem is that redirecting causes problems with Ajax.BeginForm
<% using (Ajax.BeginForm("Action", "Controller", new AjaxOptions { OnSuccess = "OnSuccess", UpdateTargetId = "Container", InsertionMode = InsertionMode.Replace }, new { id = "eventAjaxForm" })) { %>
How can I determine the result of a PartialView or are we redirecting the user?
redirect asp.net-mvc-2 partial-views
Tx3 Nov 15 '10 at 13:15 2010-11-15 13:15
source share