使用asp.net更新面板时'sys'未定义 [英] 'Sys' is undefined while using asp.net update panel
问题描述
在使用asp.net的更新面板时,我正在获取"Sys"是未定义的错误.
谁能让我知道为什么会这样.
我也在同一项目中使用jquery.
i''m getting ''Sys'' is undefined error while using update panel of asp.net.
can anyone let me know why this is happening.
i was also using jquery in same project.
thanks in advance.
推荐答案
如果使用VS2005,则问题通常是由于web.config配置引起的.在system.web
部分的web.config中添加以下配置.
If you use VS2005 the problem is generally because of web.config configuration. Add the following configuration in web.config insystem.web
section.
<httpHandlers> <remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
如果使用VS2008,则问题通常是因为JavaScript太早引用了Sys命名空间.
在这里,看看这些文章和讨论它们的博客文章以及如何解决它:
配置ASP.NET AJAX [ ASP.NET-AJAX功能在页面上不起作用|未定义系统" [使用asp.net时如何解决"sys is undefined"错误ajax更新面板. [ ^ ]
更新了您的web.config,但是Sys仍未定义吗? [ ^ ]
"Sys"未定义-ASP.NET AJAX [ ASP.NET AJAX 3.5错误-系统未定义"解决方法 [ ^ ]
If you use VS2008, the problem is generally because of JavaScript that references the Sys namespace too early.
Here, have a look at these articles and blog posts discussing the same and how to resolve it:
Configuring ASP.NET AJAX[^]
ASP.NET - AJAX functionality not working on the page | Getting ‘Sys’ is undefined[^]
How to solve "sys is undefined" error while using asp.net ajax update panel. [^]
Updated your web.config, but Sys is still undefined?[^]
''Sys'' is undefined - ASP.NET AJAX[^]
ASP.NET AJAX 3.5 error - "Sys is undefined" workaround[^]
这篇关于使用asp.net更新面板时'sys'未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!