I have an issue. I need to populate one dropdown with a list of items. The way I am currently doing it is to do a select top 500, but i really need all the items in there and there could be 1000 or more. Below is a paste of the amount of data im trying to send back when the site crashs.
Jquery:
$.ajax({
type: "POST",
url: "WebService.asmx/GetFinish1",
data: '{' +
'Item:"' + item + '"' +
'}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
//$("#item").val(msg);
var data = jQuery.parseJSON(msg);
if (!data.error) {
$.each(data, function (d) {
var areaText = $('#notes').val();
if (data[d].Dropdown == "Finish1") {
if (data[d].Value != "") {
$("<option>").attr("value", data[d].id).text(data[d].Value).appendTo($('#dropFinish1'));
}
}
if (data[d].Dropdown == "Finish2") {
if (data[d].Value != "") {
$("<option>").attr("value", data[d].id).text(data[d].Value).appendTo($('#dropFinish2'));
}
}
if (data[d].Dropdown == "Length") {
if (data[d].Value != "") {
$("<option>").attr("value", data[d].id).text(data[d].Value).appendTo($('#dropLength'));
}
}
if (data[d].Dropdown == "Unit") {
if (data[d].Value != "") {
$("<option>").attr("value", data[d].id).text(data[d].Value).appendTo($('#dropUnit'));
}
}
if (data[d].Dropdown == "Notes") {
if (data[d].Value != "") {
$('#notes')[0].value = areaText + data[d].Value;
}
}
});