ASP.Net 如何从弹出窗口更新主页中的 updatePanel?

发布于 2024-09-12 05:06:54 字数 413 浏览 0 评论 0原文

需要一些帮助,提前谢谢你。我有两个页面 aspx,第一个是包含更新面板的主页,我将第二个页面称为弹出窗口。我需要一种从弹出窗口更新更新面板(在主页中)的方法。

感谢您的宝贵帮助。

我在 javascript 中调用弹出窗口,如下所示:

this.showUrl = function(url) {

     if (!this.div) {
      this.create();
     }
     else {
      this.div.style.display = '';
      this.hideDiv.style.display = '';
     }
     DayPilot2.ModalStatic = this;

     this.iframe.src = url;

    };

want somme help, thank you by advance. I've two page aspx, the first is the main page containe an updatepanel in which I call the second page as popup. I need a way for update the updatepanel (in main page) from the popup.

Thank you for you precious help.

I call popup as this follow in javascript:

this.showUrl = function(url) {

     if (!this.div) {
      this.create();
     }
     else {
      this.div.style.display = '';
      this.hideDiv.style.display = '';
     }
     DayPilot2.ModalStatic = this;

     this.iframe.src = url;

    };

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冷情妓 2024-09-19 05:06:54

将 UpdatePanel 的 ClientID 传递给弹出窗口。然后从您的代码隐藏或 javascript 调用 update() 。

Pass the ClientID of the UpdatePanel to the popup. Then call update() from your codebehind or javascript.

故事灯 2024-09-19 05:06:54

我不久前写了一些关于如何从弹出窗口调用父窗口的代码的文章。看看是否有帮助。

http://www.codeproject.com/KB/aspnet/sample.aspx

I wrote something a while ago on how to call parent window's code behind from pop up window. See if it helps.

http://www.codeproject.com/KB/aspnet/sample.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文