Ajax错误提示Sys未定义解决方法

解决这个错误费了半天时间,在网上查找到一些方法 A:在web.config文件中加以下代码 <httpHandlers>       <remove verb="*" path="*.asmx"/>       <add verb="*" path="*.asmx" validate="false" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>       <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>       <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> <httpModules>       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>     </httpModules> B: <asp:SrciptManager> 控件紧跟在<form>后面 以上都对,还是提示SYS未定义,后来发现是编码问题,AjaxControlToolkit是Utf-8,web.config配置了gb2312,把uiCulture="zh-CN"改为uiCulture="en"后问题解决 C: <globalization fileEncoding="gb2312" requestEncoding="gb2312" resp culture="zh-CN" uiCulture="zh-CN"/> 把uiCulture="zh-CN"改为uiCulture="en"

你可能感兴趣的:(Ajax)