• 如何在新窗口保存数据后刷新父页面列表


    有时候需要在父页面打开的子页面修改数据后及时的刷新父页面的列表数据,但是一般情况下,如果只是简单的以超链接形式打开是无法刷新父页面的,子页面需要以"window.open形式打开,如window.open('test.aspx?KeyValue=1&State=Modify','BizInfo') ,这样在子页面保存时就可以opener.window.document.getElementById('btnRefresh').click()调用父页面的控件刷新父页面的列表了

    子页面保存时调用 ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "SuccessTip", "opener.window.document.getElementById('btnRefresh').click()", true);

    父页面添加刷新控件,用于子页面刷新,ibtnSearch_Click刷新列表

    <div style ="display :none ;"> //隐藏刷新按钮
    <asp:Button ID="btnRefresh" Text="<%$Resources:Resource,BtnSearch%>" runat="server" OnClick="ibtnSearch_Click" CssClass="primaryUIButton" />
    </div>

  • 相关阅读:
    Codeforces-859C Pie Rules(dp)
    Codeforces-550D Regular Bridge
    Codeforces-534D Handshakes
    抽象类
    内部类
    接口
    初始化
    this 和super
    数据库测试的测试点
    数据库测试的主要内容
  • 原文地址:https://www.cnblogs.com/lidaying5/p/7055767.html
Copyright © 2020-2023  润新知