在调试中发现错误如下:
Response.Redirect引起的“无法在发送HTTP标头之后进行重定向” 跳转失败
解决方案如下:
使用js方法来跳转地址
const string url="<script>window.location.href='/login/index'</script>;
System.Web.HttpContext.Current.Response.Write(url);
System.Web.HttpContext.Current.Response.End();