后台取值代码[AjaxPro.AjaxMethod]
public DataSet GetDataSet(string bh,string table)
{
            string sql=" select * from "+table+" where pzjlh="+bh;
DataSet ds=new DataSet();
ds=func.func1.ExeSelect(sql); return ds;
}前台function CreateUpdateControl()
{
 if(bhvalue!="-1")
 {
  CWXT.CWDJ.CKJF.GetDataSet(bhvalue,"cwgl_pz_zyywcb",GetDataSet_CALL_BACK);
 }
}
function GetDataSet_CALL_BACK(response)
{
 if(response.value==null)
    return;
 var ds=response.value;
 if((ds!=null)&&(typeof(ds)=="object")&&(ds.Tables!=0))
 {
   for(var i=0;i<ds.Tables[0].Rows.length-1;i++)
   {
     AddRowRKZYCB();//动态生成控件的方法
   }
   InitControlValue(ds);
 }
}
function InitControlValue(ds)
{
 var obj=document.getElementById("ActTabZYCB");
 for(var i=0;i<ds.Tables[0].Rows.length;i++)
 {
    tr=obj.rows[(i+1)];
    for(var j=2;j<tr.childNodes.length;j++)
{   
    
   td=tr.childNodes[j];
   input=td.firstChild;
   if(j==2)
   {
    input.value=parseFloat(ds.Tables[0].Rows[i].je.toString()).toFixed(2);
    alert(ds.Tables[0].Rows[i].je);
   }
   else
   {
    input.value=ds.Tables[0].Rows[i].zy;
   }
}
 }
} 应该没什么错?