使用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>
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号