我们可以将多个控件作为TargetControlId分配给ModalPopupExtender吗? [英] Can we assign more than one control as TargetControlId to ModalPopupExtender ?

查看:103
本文介绍了我们可以将多个控件作为TargetControlId分配给ModalPopupExtender吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网络应用程序中使用ModalPopUpExtender。我希望打开相同的ModalPopup并单击多个按钮。有可能吗?

I am using ModalPopUpExtender in my web application. I want open same ModalPopup with more than one button click. Is it possible ?

推荐答案

http://stackoverflow.com/questions/4628719/modalpopupextender-set-to-multiple-target-control-ids [ ^ ]

http://stackoverflow.com/questions/7716773/multiple-target-ids-and-the-modalpopup-extender [ ^ ]

http://forums.asp.net/ t / 1058661.aspx?+ multiple + TargetControlIDs + for + ModalPopupExtender + [ ^ ]

http://codeverge.com/asp.net.ajax_control_toolkit/share-single-popup-control-from / 20875 [ ^ ]

http://dotnetdawgs.com/ post / Multiple-Controls-for-one-modalPopup.aspx [ ^ ]
http://stackoverflow.com/questions/4628719/modalpopupextender-set-to-multiple-target-control-ids[^]
http://stackoverflow.com/questions/7716773/multiple-target-ids-and-the-modalpopup-extender[^]
http://forums.asp.net/t/1058661.aspx?+multiple+TargetControlIDs+for+ModalPopupExtender+[^]
http://codeverge.com/asp.net.ajax_control_toolkit/share-single-popup-control-from/20875[^]
http://dotnetdawgs.com/post/Multiple-Controls-for-One-modalPopup.aspx[^]


你可以在按钮事件后面显示代码以显示和隐藏你的模态弹出,但如果它提示你将targetid设置为按钮哪个没用。或者可能是Targetid到任何虚拟隐藏字段。

或者你可以尝试这个链接

Modalpopupextender设置为多个目标控件ID [ ^ ]
You can have code behind button event to show and hide your modal pop up but if it prompt you to set targetid to a button which is not in use. Or may be Targetid to any dummy hidden field.
OR you can try this link
Modalpopupextender set to multiple target control IDs[^]


这篇关于我们可以将多个控件作为TargetControlId分配给ModalPopupExtender吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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