*********我已经安装好ASPAJAXExtSetup.msi了,但是还不能用ajax,需要哪里去配置呢?
各位高手,请帮帮忙,谢谢!
[解决办法]
找到C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025,然后研究一下web.config文件,找出不同,拷贝进你的web.config。或者,你要新建网站或项目的时候选择建立aspnet ajax网站,系统会自动配置web.config
[解决办法]
在已建项目中使用AJAX.net,在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>
<httpModules>
<add name= "ScriptModule " type= "System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 "/>
</httpModules>