AjaxPro绑定GridView
RT.
请问如果用ajaxpro.webmethod 绑定gridview呢?
JS :
function LoadGridViewData(dropJYS)
{
var grv = document.getElementById("grvTeacherInfo");
MyAjax.GetApjsInfo(dropJYS.value,grv);
}
MyAjax.cs:
[AjaxPro.AjaxMethod]
public void GetApjsInfo(string jysdm, GridView grvInfo)
{
DataTable dt = da.getDataTable("select * from v_jx_kk_jxrwapjs where jsdm in (select jsdm from v_jx_jysjsgl where jysdm='" + jysdm + "' ) ");
grvInfo.DataSource = dt;
grvInfo.DataBind();
}
页面已注册. 总是执行到 grvInfo.DataSource = dt;
就不往下执行了。请问怎么才可以绑定gridview啊?