如何使用Json和JQuery在Dropdown中填充数据

时间:2012-09-19 08:24:15

标签: c# jquery asp.net json

    var technicianServiceUrl = "../../../AJAX/Common/BankingServiceAjax.svc/";
    var proxyTechnician = new serviceProxy(technicianServiceUrl);
    var technicians;

    function OnGetNotes() {
        proxyNotes.invoke("SearchBranchesByBankID",
                { "request":
                    {
                        "BankID": 1
                    }
                }, OnGetNotesComplete, OnError);


    }
    function OnGetNotesComplete(result) {

        var obj = jQuery.parseJSON(result);
        technicians = obj.Branches;
    }

我希望OnSet Notes Complete填充Dropdown中的数据。返回将是数组

0 个答案:

没有答案