ASP.Net 如何从弹出窗口更新主页中的 updatePanel?
需要一些帮助,提前谢谢你。我有两个页面 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 UpdatePanel 的 ClientID 传递给弹出窗口。然后从您的代码隐藏或 javascript 调用 update() 。
Pass the ClientID of the UpdatePanel to the popup. Then call update() from your codebehind or javascript.
我不久前写了一些关于如何从弹出窗口调用父窗口的代码的文章。看看是否有帮助。
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