日期:2014-05-16 浏览次数:20664 次
function DataTable_CallBack(returnValue) {
var table = returnValue.value;
for (var i = 0; i < table.Rows.length; i++) {
document.getElementById("MyDIV").innerHTML += table.Rows[i]["ObjectProID"].toString() + "<br/>";
}
}
[AjaxPro.AjaxMethod]
public DataTable loadChecked()
{
DataTable dTable = BDAService.GetObjectPropertyId(6);
return dTable;
}
<input id="btn_Ajax6" type="button" value="测试" onclick=" App.Web.WebUI.Admin.Payroll.CNPRStructConfig.loadChecked(DataTable_CallBack)"/>
protected void Page_Load(object sender, EventArgs e)请问各位大神:这是什么原因呢!
{
AjaxPro.Utility.RegisterTypeForAjax(typeof(App.Web.WebUI.Admin.Payroll.CNPRStructConfig));
if (!IsPostBack)
{
DataTable dt = BDAService.GetObjectDefine();
rep_Objict.DataSource = dt;
rep_Objict.DataBind();
DataTable dTable = BDAService.GetObjectPropertyId(6);
PageHelper.Alert(dTable.Rows.Count.ToString());
}
}