参考以下地址:
https://www.it1352.com/48944.html
作者的说法如下:
“You can’t redirect in an AJAX action from the server. If you want your browser to redirect in an AJAX action you need to do it from javascript. Obviously using AJAX to redirect is absolutely useless. If you intend to redirect use a normal Html.Begin form and don’t bother with AJAX.”
所以,如果需要异步请求处理数据后跳转到其他页面,需要在前端收到请求结果后再做进一步处理。
以上问题是在开发中遇到的,百度搜索不尽如人意,看到这个文章后将作者的解决方案放在这里以做记录。