asp ajax
1 //[AjaxPro.AjaxMethod()] 2 //public DataTable loadChecked() 3 //{ 4 // return BDAContext.GetObject<ICNPRStructureConfigBLL>().GetObjectPropertyId(long.Parse(Request.QueryString["pid"])); 5 // //return BDAServer.GetObjectPropertyId(6); 6 //} 7 //AjaxPro.Utility.RegisterTypeForAjax(typeof(App.Web.WebUI.Admin.Payroll.CNPRStructConfig)); 8 9 //function DataTable_CallBack(returnValue) { 10 // var table = returnValue.value; 11 // for (var i = 0; i < table.Rows.length; i++) { 12 // document.getElementById("child" + table.Rows[i]["ObjectProID"]).checked = true; 13 // } 14 //} 15 //$(document).ready(App.Web.WebUI.Admin.Payroll.CNPRStructConfig.loadChecked(DataTable_CallBack)); 16 17 朱兴源 19:04:18 18 <asp:Button OnClientClick="App.Web.WebUI.Admin.Payroll.CNPRStructConfig.loadChecked(DataTable_CallBack)" ID="btn_SaveAndItemDefine" CssClass="btn btn-success" runat="server" Text="保存并定义薪资项" OnClick="btn_SaveAndItemDefine_Click" />