框架中的页面实现跳转

一、框架页的刷新
1.Response.Write( "<script>parent.frames('mainFrame').document.location.reload();</script>");


二、框架页的跳转
1.Response.Write( "<script>parent.frames('mainFrame').document.location.href('right.aspx');</script>");
2.Response.Write( "<script>parent.frames('mainFrame').document.location.assign('right.aspx');</script>");

 

三、其他页面跳转
1.Response.Write("<script>window.navigate('right.aspx');</script>");
2.Response.Write("<script>self.location='right.aspx';</script>");
3.Response.Write("<script>window.navigate('right.aspx');</script>");
4.Response.Redirect("main.aspx"); 

你可能感兴趣的:(框架中的页面实现跳转)