更新 asp.net 中的面板

发布于 2024-08-26 15:47:22 字数 161 浏览 4 评论 0原文

我正在使用两个更新面板..以嵌套方式..我可以像这样使用吗? 在我的项目中,我使用 clientscript.RegisterScript 和更新面板,它没有给出任何错误,但是,当我单击网格上的一项时,我的弹出窗口没有显示。弹出窗口位于内部(嵌套)的更新面板中。 有人可以帮忙吗???

谢谢

I am using two update panel..in nested way.. can i use like this and also
in my project im using clientscript.RegisterScript along with update panel , its not giving any error but , my pop up is not being displayed when i click one item on grid. the pop up is in update panel which is inside (nested)..
can anyone help ???

Thank you

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

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

发布评论

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

评论(1

挽你眉间 2024-09-02 15:47:22

RegisterScript 可能无法与 updatepanel 很好地配合。在这种情况下,使用 PageRequestManager.add_endRequest 方法来连接客户端脚本。

        if (window.Sys){            
            var prmx = window.Sys.WebForms.PageRequestManager.getInstance();
            prmx.add_endRequest(function() {
                alert('insert your code here...');
            });
        }

还要确保页面加载期间没有 JavaScript 错误。

RegisterScript may not work well with updatepanel. use PageRequestManager.add_endRequest method to hook-up client script in this scenario.

        if (window.Sys){            
            var prmx = window.Sys.WebForms.PageRequestManager.getInstance();
            prmx.add_endRequest(function() {
                alert('insert your code here...');
            });
        }

also make sure there is no javascript erros during page load.

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