My ASP.Net WebForms project, developed using C# in Visual Studio 2013, involves the utilization of an AJAX Popup Extender. I have integrated AjaxControlToolKit and AjaxControlToolkitStaticResources through NuGet. However, recently the popup form has ceased to appear. Upon attempting to trigger the popup by clicking the designated control, it fails to display on Mozilla Firefox as the target browser. The Firefox console highlights several errors, including:
/* 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: |
*/
To resolve this issue and restore the appearance of the popup, what steps can I take? https://i.sstatic.net/AlPzK.png
The code related to the popup functionality is displayed below:
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>
The Site.Master code appears as follows:
%@ 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>