使用MSAJAX Futures CTP时,在Web.config文件中添加对DataTable的转换支持

<configuration>

<system.web.extensions>
  <scripting>
   <webServices>
        <jsonSerialization maxJsonLength="10240000">
          <converters>
            <add name="DataSetConverter" type="Microsoft.Web.Preview.Script.Serialization.Converters.DataSetConverter, Microsoft.Web.Preview, Version=1.3.61025.0, Cultrue=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="DataRowConverter" type="Microsoft.Web.Preview.Script.Serialization.Converters.DataRowConverter, Microsoft.Web.Preview, Version=1.3.61025.0, Cultrue=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="DataTableConverter" type="Microsoft.Web.Preview.Script.Serialization.Converters.DataTableConverter, Microsoft.Web.Preview, Version=1.3.61025.0, Cultrue=neutral, PublicKeyToken=31bf3856ad364e35"/>
          </converters>
        </jsonSerialization>
    <!--
        Uncomment this section to enable the authentication service. Include
        requireSSL="true" if appropriate.

        <authenticationService enabled="true" requireSSL = "true|false"/>
        -->
    <!--
        Uncomment these lines to enable the profile service, and to choose the
        profile properties that can be retrieved and modified in ASP.NET AJAX
        applications.

        <profileService enabled="true"
          readAccessProperties="propertyname1,propertyname2"
          writeAccessProperties="propertyname1,propertyname2" />
        -->
   </webServices>
   <!--
      <scriptResourceHandler enableCompression="true" enableCaching="true" />
      -->
  </scripting>
 </system.web.extensions>

</configuration>

posted @ 2010-01-28 14:38  小小赵  阅读(296)  评论(0编辑  收藏  举报