Response.Write("<script language=javascript>window.open('index.aspx','_parent')</script>");

解决方案 »

  1.   

    可以在清空Session操作后打出一段前端代码
    Page.RegisterStartupScript("","<script language=javascript>Top.Document.location='首页地址'</script>");
      

  2.   

    Response.Write("<script>window.parent.opener=null;window.top.close();</script>")Response.Write("<script>window.open('index.aspx','');</script>")
      

  3.   


    Response.Write("<script language = javascript>window.location=index.aspx'</script>");
      

  4.   

    哦,不好意思:拉了个标点:Response.Write("<script language = javascript>window.location='index.aspx'</script>");
      

  5.   

    晕,各位,用Response.Redirect可以吗?
      

  6.   

    老兄,效果是一样的。
    Response.redirect和window.parent.location.href=""效果是一样的。
      

  7.   

    用Response.Redirect不可以的,用下面的代码,没有问题的。Response.Write("<script language=javascript>window.open('index.aspx','_parent')</script>");
      

  8.   

    Response.Redirect只能转到当前的页面。
      

  9.   

    Response对象是对本页面的response,不能让父窗口转到其他页面的。
      

  10.   

    谢谢大家,Response.Redirect看来是不行的,哎结贴