日期:2014-05-18  浏览次数:20402 次

ASP.NET 2.0 AJAX 怎么在原有项目中使用
我把那三个dll文件复制到bin文件夹了
AJAXExtensionsToolbox.dll
System.Web.Extensions.Design.dll
System.Web.Extensions.dll

也根据web.config进行了修改
但还是很多问题
包括消息
未能找到元素“system.web.extensions”的架构信息。
未能找到属性“validateIntegratedModeConfiguration”的架构信息。
等等

到底怎么搞啊

------解决方案--------------------
新建一个Ajax toolkit 项目,把你以前项目除web.config以外所有的文件覆盖到新项目,然后把你项目的web.config里的条目,一条一条粘贴到Ajax toolkit项目的web.config中,编译,就ok了~!
------解决方案--------------------
就是ASP.NET AJAX-enabled Web site

------解决方案--------------------
大体的意思就是说,如果建的是ASP.NET AJAX-enabled Web site,会在web.config文件里面多些内容,别的也没什么差别,先把这些多出来的东东弄到你原来项目的web.config文件中去,

然后,在你的项目中 引用 然后在工具箱中选择,保证你的工具箱里出现那些控件们

然后就拖上去,然后把需要ajax效果的div之类的放进去,然后设置一下哪些事件响应,就行了
------解决方案--------------------
你自己复制进去不好使,要引用,然后添加工具箱里
------解决方案--------------------
你要安装ASPAJAXExtSetup.msi
------解决方案--------------------
这个是asp.net 2.0 ajax的配置文件,参考修改,注意大小写,.net对大小写要求非常严格
XML code

<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
          <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>

  <system.web>
    <pages>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
      </controls>
    </pages>
    <!--
          Set compilation debug="true" to insert debugging
          symbols into the compiled page. Because this
          affects performance, set this value to true only
          during development.
    -->
    <compilation deb