ASP.NET MVC redirect from asynchronous call
I send asynchronous call using jQuery form plugin and in the case of success want to redirect user to some "success-page". Now my ASP.NET MVC action j开发者_开发百科ust returns some special "success-JSON" and the user is redirected using Javascript.
Is there any way to implement automatic redirect (without Javascript call)?
If you are performing an AJAX call, then the only way to redirect the user is to change the window.location.href
in the complete callback based on the success JSON code.
精彩评论