Click here to Skip to main content
15,923,006 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<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============
C#
protected void Button1_Click(object sender, EventArgs e)
    {
        //if (Some condition)
        //{ Show pop up }
        //else { do not show popup
        
    }

====================================================================
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.
Posted

1 solution

Have a look on this[^]. it might be helpful.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900