显示ModelPopup:根据条件后面的代码. [英] Display ModelPopup : as per Code behind condition.
本文介绍了显示ModelPopup:根据条件后面的代码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:Button ID="Button1" runat="server" Text="SUBMIT" OnClick ="Button1_Click" />
<cc1:ModalPopupExtender ID="ModalPopupExtender1" TargetControlID ="Button1" PopupControlID ="tblMessage" runat="server" CancelControlID ="btnClsPwd">
</cc1:ModalPopupExtender>
//========================================后面的代码===== =======
//=========================================Code behind============
protected void Button1_Click(object sender, EventArgs e)
{
//if (Some condition)
//{ Show pop up }
//else { do not show popup
}
================================================== ==================
当用户单击Button1(即TargetControlID)时,应检查在Button1-click事件中编写的条件代码.如果满足,则将显示弹出窗口.
请分享您的想法.
====================================================================
When user click Button1(ie.TargetControlID)It should check the condtion code written in Button1-click event. if it satisfies then the pop-up should display.
Plz share your ideas.
推荐答案
看看 [ ^ ].可能会有所帮助.
Have a look on this[^]. it might be helpful.
这篇关于显示ModelPopup:根据条件后面的代码.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文