У меня есть проект ASP.Net WebForms (использующий C # в VS 2013), в котором я вызываю экземпляр AJAX Popup Extender. Я добавил AjaxControlToolKit и AjaxControlTookitStaticResources, используя NuGet. Недавно всплывающая форма перестала отображаться. Когда я пытаюсь показать всплывающее окно, щелкнув целевой элемент управления, оно не отображается с использованием FireFox в качестве целевого браузера. Консоль Firefox показывает ряд ошибок, как показано ниже. Первая ошибка:
/* Minification failed. Returning unminified contents.
(6,25981-25982): run-time error JS1014: Invalid character: \
(6,25981-25982): run-time error JS1003: Expected ':': \
(6,44631-44635): run-time error JS1197: Too many errors. The file might not be a JavaScript file: 'ss'
(6,25816-25829): run-time error JS1301: End of file encountered before function is properly closed: function(e,b)
(6,44635-44636): run-time error JS1004: Expected ';
': Z
(6,45814-45815): run-time error JS1195: Expected expression: ^
(6,45815-45816): run-time error JS1197: Too many errors. The file might not be a JavaScript file: |
*/
Что я могу сделать, чтобы всплывающее окно снова появилось? ![Errors when running web application in FireFox](https://i.stack.imgur.com/AlPzK.png)
Код, относящийся к всплывающему окну:
CancelControlID="cmdCloseButton" BackgroundCssClass="modalBackground"> </cc1:ModalPopupExtender>
<asp:Button ID="cmdTest" runat="server" Text="Test Popup" Width="177px"/>
<%--<asp:Button ID="cmdTest" runat="server" Text="Test Popup" Width="177px" Style="display:none" />--%>
<asp:Panel ID="Panl2" runat="server" Width="280px" Height="180px" CssClass="modalPopup" align="left" style="display:none">
<br />    Need to caption multiple photos? <br /><br />
    Click <a href="Why Use the Windows Downloadable Application.htm" target="_blank">here</a> for details of desktop app. <br /><br />
    To hide this message and watermark on <br />
    captioned photo, <a href="BuyLicense.aspx" target="_blank">buy License</a>.
<asp:Button ID="cmdCloseButton" runat="server" Text="Close" CssClass ="closebutton"
OnClick ="cmdCloseButton_Click" formnovalidate="formnovalidate" UseSubmitBehavior="false"/>
</asp:Panel>
Код Site.Master:
%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="CaptionProWebMob.SiteMaster" %>
<!DOCTYPE html>
<html lang="en">
<head runat="server">
<meta charset="utf-8" />
<title><%: Page.Title %> Caption Pro Web</title>
<asp:PlaceHolder runat="server">
<%: Scripts.Render("~/bundles/modernizr") %>
</asp:PlaceHolder>
<webopt:BundleReference runat="server" Path="~/Content/css" />
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
<asp:ContentPlaceHolder runat="server" ID="HeadContent" />
</head>
<body>
<form runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="False">
<Scripts>
<%--To learn more about bundling scripts in ScriptManager see http://go.microsoft.com/fwlink/?LinkID=272931&clcid=0x409 --%>
<%--Framework Scripts--%>
<asp:ScriptReference Name="MsAjaxBundle" />
<asp:ScriptReference Name="jquery" />
<asp:ScriptReference Name="jquery.ui.combined" />
<asp:ScriptReference Name="WebForms.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebForms.js" />
<%--<asp:ScriptReference Name="WebUIValidation.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebUIValidation.js" />
<asp:ScriptReference Name="MenuStandards.js" Assembly="System.Web" Path="~/Scripts/WebForms/MenuStandards.js" />
<asp:ScriptReference Name="GridView.js" Assembly="System.Web" Path="~/Scripts/WebForms/GridView.js" />
<asp:ScriptReference Name="DetailsView.js" Assembly="System.Web" Path="~/Scripts/WebForms/DetailsView.js" />
<asp:ScriptReference Name="TreeView.js" Assembly="System.Web" Path="~/Scripts/WebForms/TreeView.js" />
<asp:ScriptReference Name="WebParts.js" Assembly="System.Web" Path="~/Scripts/WebForms/WebParts.js" />
<asp:ScriptReference Name="Focus.js" Assembly="System.Web" Path="~/Scripts/WebForms/Focus.js" />
<asp:ScriptReference Name="WebFormsBundle" />--%>
<%--Site Scripts--%>
</Scripts>
</asp:ScriptManager>
<header>
</header>
<div id="body" ondragstart="dragStartHandler1(event);">
<asp:ContentPlaceHolder runat="server" ID="FeaturedContent" >
</asp:ContentPlaceHolder>
<section class="content-wrapper main-content clear-fix">
<asp:ContentPlaceHolder runat="server" ID="MainContent" >
</asp:ContentPlaceHolder>
</section>
</div>
<footer>
<div class="content-wrapper">
<div class="float-left">
<p>© <%: DateTime.Now.Year %> - Caption Pro Web</p>
</div>
</div>
</footer>
</form>
</body>
</html>