Modalpopupextender没有显示弹出窗口 [英] Modalpopupextender not showing popup window

查看:86
本文介绍了Modalpopupextender没有显示弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我已经创建了一个示例Web应用程序。在那里我使用modalpopupextendor显示一个弹出窗体来从用户获取信息。它的工作完美。但之后我通过在解决方案中添加母版页将此网页转换为内容形式。该页面工作正常但弹出窗口没有显示。该页面处于不可编辑状态,但不显示弹出窗口。我在mater页面中添加了脚本管理器,并在内容页面中添加了scriptmanagerproxy。任何帮助表示赞赏。



谢谢

Hi everybody,

I have create a sample web application. In that i displayed a popup form using modalpopupextendor to get info from user. Its working perfectly. But after when i convert this webpage into content form by adding master page in the solution. That page is working correctly but the popup not showing. The page gets non editable state but its not showing the popup only. I added the script manager in the mater page and also added scriptmanagerproxy in the content page too. Any help appreciated.

Thank you

推荐答案

如果除了母版页转换之外没有任何变化,那么可能是控件引用ID不匹配的可能。我建议检查如果你打开弹出窗口使用
If there are no changes except the masterpage conversion, there could be a possible of mismatching of the control reference id.. What I would suggest is to check If you are opening the popup using


find({popup id})。show()。如果是,请检查弹出ID是否正确。通过引入母版页,运行时ID将被更改。



为了更安全,您可以使用以下代码



find({popup id}).show(). If so, please check if the popup id is correct. By inducing the master page the, runtime Id will be changed.

To be on the safer side, you can use the below code


find(' <%= mdlPopup.ClientID%>')。show();
find('<%=mdlPopup.ClientID %>').show();





这里 mdlPopup 是modalpopup Extender控件的设计时ID。



Here mdlPopup is the design time id of the modalpopup Extender control.


这篇关于Modalpopupextender没有显示弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆