function GetData() { var url = "http://localhost:60191/SampleService.asmx/SayHello"; $.ajax({ type: 'GET', url: url, crossDomain: true, contentType: "application/json; charset=utf-8", //data: "{firstName:'Aidy', lastName:'F'}", dataType: "jsonp", timeout: 4000, async: false, success: function (data) { debugger; var aa = JSON.parse(data); alert(data); $.each(msg, function (name, value) { alert(value); console.log(data.data); }); }, error: function (xhr, status, error) { alert('error 404 !!'); }, async: false, cache: false }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)