How to Create modal Pop-Up form in using

Vrahmdev Tiwari

Total Post:3


Posted by  Vrahmdev Tiwari
 504  View(s)
Rate this:

Please help me

  1. Re: How to Create modal Pop-Up form in using

    How to Create modal Pop-Up form in using :

    The ModalPopup create a modal popup using client-side means it's control in the AJAX Control Toolkit offers triggered on the server-side. use this below code for create model pop-up : 

    <asp:Button ID="ClientButton" runat="server" Text="Launch 
     Modal Popup (Client)" />
    <ajaxToolkit:ModalPopupExtender ID="mpe" runat="server"
     TargetControlId="ClientButton" PopupControlID="ModalPanel"
    <asp:ScriptManager ID="asm" runat="server" />
    <asp:Button ID="ServerButton" runat="server" Text="Launch Modal Popup (Server)"  
     OnClick="ServerButton_Click" />
    <script type="text/javascript"> 
     var launch = false;
     function launchModal()
     launch = true;


    <form id="form1" runat="server"> 
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            <asp:Button ID="Button1" runat="server" Text="fill form" />
            <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" CancelControlID="Button2" TargetControlID="Button1" PopupControlID="Panel1">
            <asp:Panel ID="Panel1" runat="server" CssClass="Popup" align="center" style = "display:none">
            <iframe style=" width: 350px; height: 300px;" id="irm1" src="test2.aspx" runat="server"></iframe>
            <asp:Button ID="Button2" runat="server" Text="Close" />


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.