如题!ajax用的是1.0正式版

解决方案 »

  1.   

    对于[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)]返回的datatable
    可以在js中用
    for(var i=0; i<dt.Rows.length; i++)
         {
         dt.rows[i].列名
    }
      

  2.   

    function get_Return_Result_CallBack (response)
            {
                //关闭系统正忙的提示
                 showBusy(false);
                 var arlist = response.value
                if (arlist != null  && typeof(arlist) == "object" && arlist.Tables != null )
                {
                     //如果有数据返回             
                     //生成div,获得控件位置
                     if (arlist.Tables[0].Rows.length == 0)
                     {
                        return;
                       }
                        var ary = new Array();
                       
                         for(var i=0; i<arlist.Tables[0].Rows.length; i++)
                        {
                        //注意,这里的  .Name 必须大小写区分。否则,找不到
                          var name=arlist.Tables[0].Rows[i].Name;
                          var addreass=arlist.Tables[0].Rows[i].Addreass; 
    //........................................你的操作
                       }   
                        
                }        }
      

  3.   

    The JSON serializer can deal with most .NET serializable object types, so it’s easy to pass back most custom objects as well as arrays and types of collections (inherited from IDictionary). Unfortunately though, Microsoft moved support for DataTable and DataSet to the Futures release so if you plan on using the 1.0 release only, you have to move any data into objects first or create your own jsonSerialization type converters.
    --------------------------------------
    asp.net ajax 1.0不支持返回dataset和datatable把它们转化成数组吧
      

  4.   

    ajaxPro 
    ds.value.Tables[0].......
      

  5.   

    问题已经解决了 是JSON 在WEBCONFIG里开启了设置 就可以 至于你们所说的 ajaxpro没用过,不过为了统一 所以没办法只有ajax asp.net
      

  6.   

    将table的数据输入到http流。使用JS在页面获取。对结果进行拆分。
      

  7.   

    我晕,各位都是考古专家。hoho 老帖子都翻出来了
      

  8.   

    返回成功后:用result.rows.length....result.rows[i]["Name"]之类。别的你还想用什么?
      

  9.   

    Sys.Serialization.JavaScriptSerializer.serialize
      

  10.   

    确实很老了!问题早已经不存在!
    设置WEBCONFIG里 如果谁遇到了问我  现在我也记不清楚了