由於重新安裝了AJax v1.0.61025版本後,程序中總是出現:錯誤:'sys'未定義的信息.
最後找到了問題的所在.
首先Web.Config 中配置成:
..............
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.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>
<compilation debug="true">
<assemblIEs>
<add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblIEs>
</compilation>
............
重新編譯,運行即可.
如果配置Web.Config後運行仍然報錯誤,請將所有頁面的中的 <ASP:ScriptManager id="ScriptManager1" runat="server" AsyncPostBackTimeout="200">
</ASP:ScriptManager>
緊跟在<Form>標記之後.