用按钮附加modalpop [英] attach modalpop with button
本文介绍了用按钮附加modalpop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,请告诉我如何在选项卡容器中使用按钮附加modalpopup.
sir please tell me how to attach modalpopup with button in tab container.
推荐答案
<asp:TabContainer ID="TabContainer1" runat="server">
<asp:TabPanel ID="TabPanel1" runat="server">
<HeaderTemplate>test tab</HeaderTemplate>
<ContentTemplate>
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
TargetControlID="Button1"
PopupControlID="Panel1"
CancelControlID="CancelButton"
BackgroundCssClass="testcss"
Enabled="True" />
<asp:Button ID="Button1" runat="server" Text="btnpop" />
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>
<asp:Panel ID="Panel1" runat="server">
<h1>Popup Panel</h1>
<asp:Button ID="CancelButton" runat="server" Text="Cancel" />
</asp:Panel>
这篇关于用按钮附加modalpop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文