hello,
i am binding control using ajax with json web method in asp.net but its not
display drop items and ajax bind successfully. i am using firstItemChecksAll
so its display first item but not all so please post how to bind dynamically
dropdownchecklist .
please send quick reply ,
thanks.
code is here
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "WebForm3.aspx/BindData",
data: '{ ListDistrictID: ' + '"' + $('#Div3').val() + '"' + '}',
dataType: 'json',
success: function (data) {
$("#drpsubdistrict").empty();
$.each(data.d, function (key, value) {
$("#drpsubdistrict").append($("<option></option>").val(value.SubDistrictID).html(value.SubDistrictName));
});
},
error: function (result) {
alert("Error");
}
});
Original issue reported on code.google.com by viralpi...@gmail.com on 17 Aug 2013 at 6:00
Original issue reported on code.google.com by
viralpi...@gmail.com
on 17 Aug 2013 at 6:00