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; //........................................你的操作 }
} }
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把它们转化成数组吧
ajaxPro ds.value.Tables[0].......
问题已经解决了 是JSON 在WEBCONFIG里开启了设置 就可以 至于你们所说的 ajaxpro没用过,不过为了统一 所以没办法只有ajax asp.net
可以在js中用
for(var i=0; i<dt.Rows.length; i++)
{
dt.rows[i].列名
}
{
//关闭系统正忙的提示
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;
//........................................你的操作
}
} }
--------------------------------------
asp.net ajax 1.0不支持返回dataset和datatable把它们转化成数组吧
ds.value.Tables[0].......
设置WEBCONFIG里 如果谁遇到了问我 现在我也记不清楚了