Hello,
I have a webservice which is called via a Ajax request this webservice returns a list i.e List<string,string,string> my question how can i Iterate through the list that gets returned I need to grab each value.
this is my Ajax
$(document).ready(function () {
$.ajax({
url: "/Service/GetLocations.asmx/GetMapLocations",
dataType: "text",
type: "POST",
data: { SearchCriteria: "Kipling Road" },
error: function (err) {
$('#content').html(err);
},
success: function (data) {
// Need to loop through values in data?
// Something like data[0], data[1], data[2] ?
}
});
});
my Webservice
[WebMethod]
public List<LocationProperties> GetMapLocations(string SearchCriter ...
Go to the complete details ...