在调试中发现错误如下:
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