开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜