ModalPopupExtender 奇怪的行为

发布于 2024-08-21 01:48:30 字数 320 浏览 4 评论 0原文

我正在使用 C# 和 Visual Studio 2008 SP1 开发 ASP.NET 应用程序。我正在使用 WebForms。

我有一个包含两个 UpdatePanel 的 ASPX 页面,一个位于左侧,包含 TreeView,另一个位于右侧,我在其中动态加载用户控件。

在左侧面板上,我还有用于在右侧加载用户控件的按钮。我在按钮中有一个 ModalPopupExtender,显示带有单选按钮的 div 来选择类型。当我选择一个选项并单击“确定”时,它会进行回发以动态加载用户控件,但它不会消失这些模式面板,而是显示在页面的左下角。

发生什么事了?我认为这与动态负载有关。

I'm developing an ASP.NET application with C# and Visual Studio 2008 SP1. I'm using WebForms.

I have an ASPX page with two UpdatePanels, one on the left that holds a TreeView and other on the right where I load dynamically user controls.

On the left panel I also have buttons to load user controls on the right. I have a ModalPopupExtender in a button that show I div with radiobuttons to select a type. When I choose an option and click ok it do a postback to load dynamically a user control but instead of dissapear these modal panel it appers on the bottom left corner of the page.

What's happening? I think it is about dynamic load.

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

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

发布评论

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

评论(1

素罗衫 2024-08-28 01:48:30

这是 AjaxControlToolkit 上的一个错误。我决定使用以下答案: jQuery UI 的对话框不在 ASP.NET 上工作

It is a bug on AjaxControlToolkit. I've decided to use the following answer: jQuery UI's Dialog doesn't work on ASP.NET

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