想系统学习下AJAX,没想到只是拖动一个ScriptMange,就出现了“Microsoft JScript runtime error: 'Sys' is undefined”的错误,Google了一把,发现原来有朋友也遇到了类似的错误,把方法贴一下,
ajax.net1.0正式版
在 web.config-->system.web配置节添加
<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>
参考解决方法地址:
http://topic.csdn.net/u/20071217/11/896ad660-53dc-48ec-a614-e518cb71ddad.html
转自:http://www.cnblogs.com/zhonghua-sun/archive/2008/04/14/1152555.html