上传我的网站时ScriptManager出现错误 [英] error with ScriptManager when upload my web site
本文介绍了上传我的网站时ScriptManager出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我的页面首先是以下代码:
hi to all
in first of all my page is this code:
<div align="center">
<link href="cssUpdateProgress.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
var ModalProgress = '<%= ModalProgress.ClientID %>';
</script>
<div>
<script type="text/javascript" src="jsUpdateProgress.js"></script>
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:Panel ID="panelUpdateProgress" runat="server" CssClass="updateProgress">
<asp:UpdateProgress ID="UpdateProg1" DisplayAfter="0" runat="server">
<progresstemplate>
<div style="removed: relative; removed 30%; text-align: center;">
<p>
<a style="font-family: Tahoma; font-size: 13px;">در حال عملیات</a></p>
<img src="images/loadinfo.net.gif" style="vertical-align: middle" alt="Processing" />
<p>
<a tyle="font-family:Tahoma;font-size:13px;">لطفا صبر کنید ...</a></p>
</div>
</progresstemplate>
<ajaxToolkit:ModalPopupExtender ID="ModalProgress" runat="server" TargetControlID="panelUpdateProgress"
BackgroundCssClass="modalBackground" PopupControlID="panelUpdateProgress" />
</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
<link href="css/grid.css" rel="stylesheet" type="text/css" />
<%--<form id="form1" runat="server">--%>
<div align="center"></div></contenttemplate></div>
当我们转到下面的网页时,发生了错误:
and when we go to webpage below error occured:
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Method 'get_EnableCdn' in type 'System.Web.UI.ScriptManager' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.
Source Error:
Line 28: <script type="text/javascript" src="jsUpdateProgress.js"></script>
Line 29:
Line 30: <asp:ScriptManager ID="ScriptManager1" runat="server">
Line 31:
Line 32: <asp:Panel ID="panelUpdateProgress" runat="server" CssClass="updateProgress">
推荐答案
我认为是问题所在是您不使用内容模板进行扩展...
i think the problem is you do not use content template for ex...
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<%-- your control--%>
</asp:UpdateProgress>
</ContentTemplate>
</asp:UpdatePanel>
这篇关于上传我的网站时ScriptManager出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文