asp.net - Display a modal popup using AJAX -
i have designed modal popup in asp.net. task when click button, has display modal popup box. used ajax extender control kit also. below coding.
approval.aspx:
<form id="form1" runat="server"> <asp:scriptmanager id="scriptmanager1" runat="server"/> <div> <asp:button id="approvebutton" runat="server" text="approve" /> <ajaxtoolkit:modalpopupextender id ="mp1" runat="server" popupcontrolid="panel1" targetcontrolid="approvebutton" cancelcontrolid="cancelbutton"> </ajaxtoolkit:modalpopupextender> <!--modal panel "panel1"--> <asp:panel id="panel1" runat="server" height="170px" width="506px"> <table style="width: 100%; height: 164px;"> <tr> <td> <asp:label id="reasonlabel" runat="server" text="reason approval"></asp:label> </td> <td> <asp:textbox id="reasontextbox" runat="server" height="126px" textmode="multiline" width="336px"></asp:textbox> </td> </tr> <tr> <td> </td> <td> <asp:button id="okbutton" runat="server" text="ok" width="66px" /> <asp:button id="cancelbutton" runat="server" text="cancel" /> </td> </tr> </table> </asp:panel> <!--modal panel--> </div>
the problem is, popup window blinking once when clicked button. not displaying popup permanently.
Comments
Post a Comment