C# 无法在发送 HTTP 标头之后进行重定向
时间:2017-01-12 11:02:19
收藏:0
阅读:562
在调试中发现错误如下:
Response.Redirect引起的“无法在发送HTTP标头之后进行重定向” 跳转失败,会执行两次到登录界面
解决方案如下:
1 const string url="/login/index";
2 System.Web.HttpContext.Current.Response.Write(url);
3 System.Web.HttpContext.Current.Response.End();
原文:http://www.cnblogs.com/louby/p/6275166.html
评论(0)