更新时间:2022-11-17 10:25:01
您可以回复 JavaScriptResult .
You can response JavaScript which basically returns JavaScriptResult.
[HttpPost] public ActionResult AddToWishList(int id, bool check) { return JavaScript("window.location='/Account/Login'"); }
从服务器重定向到ASP.Net MVC Ajax请求的新页面
ASP.NET MVC4重定向到登录页面
ASP.NET MVC 4 jQuery Ajax请求返回内部服务器错误
webservice请求用户名和密码用于重定向到登录页面的服务器
你如何重定向到ASP.NET MVC调用页面?
编辑页面上的ASP.Net MVC 5 Ajax请求错误__RequestVerificationToken不存在