title: C# ASP.NET MVC AJAX Login Form
body: <p>I am using the MVC <code>Ajax.BeginForm("LogOn", "Account", new AjaxOptions { UpdateTargetId="updateajax"  }) &lt;div id=updateajax/&gt;</code> so it only updates to that area. The login form is the ajax.beginform.  But can you cancel the AjaxRequest inside the controller. What I wanted is that when I am loggin in the ajax, it will only update the validations but when the login is successful I want the whole page to redirect or update again. In my controller I return the entire page when the login is successful but that put the whole content inside the updateajax div. What can I do to solve this problem? I just want to stop the ajax call when the login is successful.</p>