框架Frame

来源:互联网 发布:索尼lt18i软件 编辑:程序博客网 时间:2024/05/17 18:49

一、框架

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">
    <title>无标题页</title>
    <link type="text/css" rel="stylesheet" href="css/index.css">
</head>
<frameset cols="200,*" frameborder="NO" border="0" framespacing="0">
<frame name="MiddleFrame" src="Tree.aspx"  scrolling="Yes" noresize>
<frame name="RightFrame" src="bmk1.aspx"  scrolling="Yes" noresize>
</frameset>
<noframes><body>
</body></noframes>

</html>



二、

this.RegisterStartupScript("bmk1_Add", "<script>parent.location.href='index1.aspx';</script>");  //刷新父框架


this.RegisterStartupScript("body", "<script>window.location.href='index1.aspx';</script>");         //刷新本框架


MessageBox.ResponseScript(Page, "parent.MiddleFrame.location.href='khrwb1_ry_left.aspx'");  //左边框架


this.RegisterStartupScript("bmk1model", "<script>parent.frames['MiddleFrame'].document.getElementById('" + model.bmbm + "').innerHTML='" + model.bmname + "';</script>"); //控制左框架中元素的文本



MessageBox.ResponseScript(Page, "parent.window.location.href='../Login.aspx'");      //返回到登陆框


原创粉丝点击