解决方案 »

  1.   

    有加 Updatepanale 吗?  好像和 这种注册写法有冲突
      

  2.   

    try this:
    http://www.cnblogs.com/insus/archive/2008/11/26/1341703.html
      

  3.   

        public void ZhuanXiangZhuYe() {
            System.Web.HttpContext.Current.Response.Write("<script>alert('登陆状态失效,请到首页重新登陆!')</script>");
            System.Web.HttpContext.Current.Response.Write(“<script>this.top.location.href='index.aspx'</script>”);
        }这样写简单些,还有,在跳转之前,你得判断下 this.top对象是不是null,有可能是this.top对象没取到,没取到就再加个else ,用window.location.href='xxx.aspx'吧。