如何在页面加载期间不使用TargetControlID的情况下使用弹出式扩展程序 [英] How to use popup extender during page load without using TargetControlID
本文介绍了如何在页面加载期间不使用TargetControlID的情况下使用弹出式扩展程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有任何示例在不使用TargetControlID的情况下在页面加载期间显示弹出式扩展程序.
I there any samples to show popup extender during pageload without using TargetControlID.
推荐答案
您好,
在页面上放置一个虚拟按钮,并将其可见性设置为false,并将其指定为模式弹出扩展器的targetcontrol ID. modalpopupextneder的TargetcontrolID不能为null
Hi,
Place a dummy button on your page and set its visibility to false and assign this as a targetcontrol ID of the modal popup extender. TargetcontrolID of modalpopupextneder cannot be null
<asp:Button ID="btnDummy" runat="server" Style="display: none;" />
<asp:ModalPopupExtender ID="btnDummy_ModalPopupExtender" runat="server" TargetControlID="btnDummy"
PopupControlID="panelModal" X="20" Y="120" BackgroundCssClass="black_show" CancelControlID="btnCancel">
在您的页面上加载
And on you page Load
btnDummy_ModalPopupExtender.Show();
希望对您有帮助
Hope this helps
这篇关于如何在页面加载期间不使用TargetControlID的情况下使用弹出式扩展程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文