Html Jquery在网格视图单击事件上花费的时间太长
我在Grid view click事件上调用jQuery函数,但在单击drop down后,drop down没有绑定,而且从web服务检索数据花费的时间太长 网格单击事件Html Jquery在网格视图单击事件上花费的时间太长,html,jquery,asp.net,Html,Jquery,Asp.net,我在Grid view click事件上调用jQuery函数,但在单击drop down后,drop down没有绑定,而且从web服务检索数据花费的时间太长 网格单击事件 $(function () { $("[id*=dgDepots]").click(function () { GetAllCostCenter(); GetAllGLCode(); B
$(function () {
$("[id*=dgDepots]").click(function () {
GetAllCostCenter();
GetAllGLCode();
BindLocations();
});
});
功能
var AllCostCenter = [];
function GetAllCostCenter() {
var params = { DivisionCode: $('#ddlDivision').val() };
$.ajax({
type: 'POST',
contentType: "application/json; charset=utf-8",
data: JSON.stringify(params),
url: 'Header.aspx/GetCostCenterCode',
dataType: 'json',
async: false,
success: function (res) {
CostCeneter(res.d)
OnSuccessCostCeneterCall();
},
error: function (err) { // Added this event to capture the failed requests.
console.log(err);
}
});
function CostCeneter(dataCostceneter) {
AllCostCenter = dataCostceneter;
}
}
我需要取大约5000条记录。
有人能帮我吗