Ajax :sys未定义

2年前 (2022) 程序员胖胖胖虎阿
133 0 0

原文地址:http://www.cnblogs.com/wangzhq/archive/2006/11/28/574781.html 

由于重新安装了Ajax v1.0.61025版本后,程序中总是出现:错误:'sys'未定义的信息.
最后找到了问题的所在.
首先Web.Config 中配置成:
<system.web>
..............

        <handlers>
            
<remove name="WebServiceHandlerFactory-Integrated"/>
            
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        
</handlers>

..........
</system.web>
重新编译,运行即可.

如果配置Web.Config后运行仍然报错误,请将所有页面的中的

Ajax  :sys未定义<asp:ScriptManager id="ScriptManager1" runat="server" AsyncPostBackTimeout="200">
Ajax  :sys未定义    
</asp:ScriptManager>

紧跟在<Form>标记之后.

 

版权声明:程序员胖胖胖虎阿 发表于 2022年9月3日 上午6:24。
转载请注明:Ajax :sys未定义 | 胖虎的工具箱-编程导航

相关文章

暂无评论

暂无评论...