在调试中发现错误如下:

     Response.Redirect引起的“无法在发送HTTP标头之后进行重定向” 跳转失败

 

解决方案如下:

 使用js方法来跳转地址

1 const string url="<script>window.location.href='/login/index'</script>;

2 System.Web.HttpContext.Current.Response.Write(url);

3 System.Web.HttpContext.Current.Response.End();

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2021-12-01
  • 2021-12-20
猜你喜欢
  • 2021-08-14
  • 2021-10-08
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2021-08-23
相关资源
相似解决方案