zoukankan      html  css  js  c++  java
  • 从ASP.NET的web1子界面刷新打开web1的web0父界面

    单击web0界面的按钮bt1触发一下代码:

    protected void btnSave_Click(object sender, EventArgs e)
    {
    string parentJs = @"<script>opener.location.reload();</script>";
    ClientScript.RegisterStartupScript(this.GetType(), "clientScript", parentJs);
    }

    即可刷新web0。前提是web0打开web1的方式如下:

    public void btOpenWeb1(object sender,eventargs e)
    {
      Response.Write("<script type='text/javascript'>window.open('web1.aspx','newwindow', 'height=500, width=750, top=50,left=300, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')</script>"); 
    }
  • 相关阅读:
    Jam的计数法
    你已经爱我多久了
    脏话过滤
    三角恋
    栈练习3
    栈练习2
    栈练习
    高精度之乘法
    高精度之减法
    高精度之加法
  • 原文地址:https://www.cnblogs.com/donchen/p/3948629.html
Copyright © 2011-2022 走看看