如题,我想在AjaxPro返回的DataSet中任意添加新行如何办到?

解决方案 »

  1.   

    可惜见多没识广,哎,AJAXPRO是什么东西啊?
      

  2.   

    请详细查看AjaxPro.NET官方的StartKit包 {
    desc: "Checks if a DataSet can be passed in both directions.",
    showValue: false,
    run:function() {
    var ds = new Ajax.Web.DataSet();
    var dt = new Ajax.Web.DataTable();
    dt.addColumn("FirstName", "System.String");
    dt.addColumn("Age", "System.Int32");
    ds.addTable(dt);

    var r = {};
    r.FirstName = "Michael";
    r.Age = 28;
    dt.addRow(r);

    MyAjaxMethods.Test06(ds, callback, ds);
    },
    callback:function(res) {
    return res.value.Tables[0].Rows[0].FirstName == "Michael" && res.value.Tables[0].Rows[0]["Age"] == 28 && !isNaN(res.value.Tables[0].Rows[0].Age && compareArray(res.value.Tables[0].Rows[0], res.context.Tables[0].Rows[0]));
    }
    },
      

  3.   

    ajaxpro一个.net的ajax框架 .
    看到过 。没用过 。