本文介绍了模态弹出窗口不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到一个问题模式弹出窗口没有渲染click.i已检查调试器事件被触发但弹出没有提出。请帮助我。
i have facing a problem modal popup not rendering after a click.i have checked with debugger event is fired but pop up not raised. please help me.
protected void popup_Click(object sender, EventArgs e) { // Show ModalPopUpExtender. ModalPopupExtender1.Show(); Panel1.Visible = true; }
<asp:ScriptManager ID="ScriptManager1" runat="server"> <asp:Button ID="Button1" runat="server" Text=""/> <ajaxToolKit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" CancelControlID="btncancel" TargetControlID="Button1" PopupControlID="Panel1" PopupDragHandleControlID="PopupHeader" Drag="true" BackgroundCssClass="ModalPopupBG"> <asp:Panel ID="Panel1" Style="display: none" runat="server"> <div class="HellowWorldPopup"> <div class="PopupBody"> <div class="PopupHeader" id="PopupHeader" style="background-color: #009000; margin-removed 0px;<br mode=" hold=" /> height: 20px; color: white"> Contact to Dr <asp:Label ID="lblDocname" runat="server"></div> </div> <div class="Controls"> <table style="height: 280px; width: 450px; margin-removed 25px;"> <tr> <td> <asp:Label ID="lblInfo" runat="server"> </td> </tr> <tr> <td style="padding-removed 20px; vertical-align: top;"> Name: </td> <td style="vertical-align: top;"> <asp:TextBox ID="txtName" runat="server" Height="23px"> </td> </tr> <tr> <td style="padding-removed 20px; vertical-align: top;"> Mobile No.: </td> <td style="vertical-align: top;"> <asp:TextBox ID="txtMobile" runat="server" Height="23px"> </td> </tr> <tr> <td style="padding-removed 20px; vertical-align: top;"> Email Address: </td> <td style="vertical-align: top;"> <asp:TextBox ID="txtAddress" runat="server" Height="23px"> </td> </tr> <tr> <td style="padding-removed 20px; vertical-align: top;"> Query: </td> <td style="vertical-align: top;"> <asp:TextBox ID="txtQuery" runat="server" TextMode="MultiLine"> </td> </tr> <tr> <td style="padding-removed 90px; vertical-align: top;"> <asp:Button ID="btnSend" runat="server" Text="Send Now" OnClick="btnSend_Click" Style="background-color: #195905; color: White; vertical-align: top; height: 23px; width: 70px;" /> </td> <td style="margin-removed 25px;"> <asp:Button ID="btncancel" runat="server" Text="Cancel" Style="background-color: #195905; vertical-align: top; color: White; height: 23px; width: 70px;" /> </td> </tr> </table> </div></div>
推荐答案
我看到你添加了< asp:scriptmanager id =ScriptManager1 runat =serverxmlns:asp =#unknown> 在您的页面中,但模型弹出扩展程序期待要执行的工具包脚本管理器。 删除asp:ScriptManager并添加Ajax Contol Toolkit Library中的工具箱脚本管理器。 检查一下你的问题将得到解决。 i have seen that you have added <asp:scriptmanager id="ScriptManager1" runat="server" xmlns:asp="#unknown"> in your page, but model popup extender expect Toolkit Script Manager to execute. so remove asp:ScriptManager and add toolkit script manager which is inside "Ajax Contol Toolkit Library". check this one your problem will be resolve.
更多推荐
模态弹出窗口不显示
发布评论