C#respnse 跳转到指定frame

来源:互联网 发布:java读取zip文件乱码 编辑:程序博客网 时间:2024/06/09 16:18

1.Page.ClientScript.RegisterStartupScript(this.GetType(), "red", "parent.window.frames['框架名'].location.href='PwsbYbpwqyJbxx.aspx';", true);

2.Response.Write("<script>parent.window.open('PwsbYbpwqyJbxx.aspx','框架名')</script>");

window.top.location.href="";跳出框架打开页面

 

<script language=\"javascript\">alert('登录已失效或没有登录,请登录!');window.top.location.href='login.php';</script>