Response.Write("<script>left.main.location.href='login.aspx'</script>");

解决方案 »

  1.   

    好像还是不行
    我左边的框架名为leftFrame
    右上的是mainFrame
    右下的是bottomFrame
      

  2.   

    Response.Write("<script>leftFrame.main.location.href='login.aspx'</script>");
      

  3.   

    你可以先OPEN(LOGIN),然后CLOSE(自己)怎么关掉框架结构的网页不用告诉你了吧
      

  4.   

    To CSTerry(Terry) :老大,还是不行哦我的代码如下:
    private void Page_Load(object sender, System.EventArgs e)
    {
    if (Session["UserId"] != null)
    {
                this.lblUserId.Text = Session["UserId"].ToString();
    }
    else
    {
      this.Response.Write("<script>leftFrame.main.location.href='login.aspx'</script>");
      return;
    }
    }
      

  5.   

    ……好像应该是这样的,sorryResponse.Write("<script language=javascript>self.parent.parent.location.href='login.aspx'</script>");
      

  6.   

    这回对了 呵呵
    唉 我只写了 self.parent.location....
    少了一个parent,所以放弃了这条思路
    呵呵
    谢谢 Terry!