AjaxControlToolkit:ModalPopupExtender 在第二次尝试时不起作用
我创建了一个包含 ImageButton
的用户控件。
单击此ImageButton
后,我打开一个AjaxControlToolkit:ModalPopupExtender
。
当我运行此 VB.NET 应用程序并单击 ImageButton
时,会加载 .modalBackground
CSS,但是当我关闭 ModalPopupExtender
并再次单击时在 ImageButton
上,第二次加载 .modalBackground
CSS 不起作用。
.modalBackground
{
BACKGROUND-COLOR: gray;
filter: alpha(opacity=70);
opacity: 0.7;
}
I have created a user control which contains an ImageButton
.
Upon clicking this ImageButton
I open an AjaxControlToolkit:ModalPopupExtender
.
When I run this VB.NET application and click on the ImageButton
the .modalBackground
CSS is loaded, but when I close the ModalPopupExtender
and again click on the ImageButton
, on the second load the .modalBackground
CSS is not working.
.modalBackground
{
BACKGROUND-COLOR: gray;
filter: alpha(opacity=70);
opacity: 0.7;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到过这种问题,这是由于在会话中存储对弹出控件的引用引起的。解决方案是通过查找所有父控件来递归地查找弹出控件:
I had that kind of problem, it was caused by storing a reference to the popup control in a session. The solution was to recursively find the popup control by looking in all parent controls: