页面被框架分割成3个部分
现在想点击其中的一个BUTTON,整个框架关闭 或者是跳转到其他页面(不是BUTTON框架里的页面跳转)
请问怎么实现

解决方案 »

  1.   

    this.btnClose.Attributes.Add("onclick",  "window.close();return false;");
      

  2.   

    this.btnClose.Attributes.Add("onclick",  "window.parent.close();return false;");
    this.btnClose.Attributes.Add("onclick",  "window.parent.location.href(xxx.aspx);return false;");
      

  3.   

    把上面两位写的代码放在Page_Load里面
      

  4.   

    this.btnClose.Attributes.Add("onclick",  "window.opener.close();return false;");
      

  5.   

    我用的是Frameset框架集,
    1:“banner”框架添加 src="Title.aspx" 
    2. “contents”框架添加 src="select.aspx"
    3. “main“框架添加 src="main.aspx" 
    Button是在Title.aspx里,把Title.aspx的<head>里加入了<base target=_parent>this.btnClose.Attributes.Add("onclick",  "window.parent.location.href(login.aspx);return false;");
    现在想指定点击后 整个页面跳转到login.aspx页面(不是在框架里显示login.aspx),但是不行啊