模态弹出窗口不显示

编程入门 行业动态 更新时间:2024-10-24 04:49:54
本文介绍了模态弹出窗口不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我遇到一个问题模式弹出窗口没有渲染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.

更多推荐

模态弹出窗口不显示

本文发布于:2023-07-18 12:54:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1144989.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹出窗口   模态

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!