javascript - ModalPopupExtender not show after a few click -
i have 2 modalpopupextender in page, first modalpopupextender use popup message, second 1 use let user make choose. when running, fine, after open , close on first or second modalpopupextender, not show on top of screen, can't see it. mean is, not show on screen, if use developer tool check it, can see show under front page, can't click button on it, , make whole page hanged.
my code below:
<asp:updatepanel runat="server" id="modalpanel1" rendermode="inline" updatemode="conditional"> <contenttemplate> <asp:button id="btnhidden" runat="server" text="" style="display: none" onclick="btnhidden_click" /> <asp:panel id="pndialog" runat="server" bordercolor="#003399" borderstyle="solid" borderwidth="3px"> <asp:panel id="pntitle" runat="server" backcolor="#003399" cssclass="title" forecolor="white"> title </asp:panel> <asp:panel id="panel1" runat="server" backcolor="white" style="padding: 8px 8px 8px 8px"> <div id="divcontent" class="content" style="padding-left: 6px"> <br /> <asp:hiddenfield id="hdn" runat="server" visible="false" /> <asp:label id="messageword" runat="server" text="message......." cssclass="labelstyle"></asp:label> </div> <hr /> <div id="divbutton"> <asp:button id="btnok" runat="server" text="ok" cssclass="buttonstyle" usesubmitbehavior="false" width="80px" /> </div> </asp:panel> </asp:panel> <ajaxtoolkit:modalpopupextender id="modalpopupextender1" runat="server" targetcontrolid="btnhidden" popupcontrolid="pndialog" backgroundcssclass="mlbackground" dropshadow="true" cancelcontrolid="btnok" > </ajaxtoolkit:modalpopupextender> </contenttemplate> </asp:updatepanel>
javascript:
function onok() { $find('modalpopupextender1').hide(); }
code behind:
protected void btnok_click(object sender, eventargs e) { if (hdn.value == "1") { response.redirect("~/fh/fhlogin.aspx"); } if (hdn.value == "2") { modalpopupextender1.hide(); } }
please me solve problem
this issue solved in v16.1 release.
Comments
Post a Comment