i have this simple web service
<WebMethod()> _
Public Function HelloWorld() As String
Return "[1255545454545,4]"
End Function
and this will be at the client side
>
$.ajax({
type: "POST",
url: "WebService1.asmx/HelloWorld",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(response) {
alert(response);
},
failure: function(msg) {
alert(msg);
}
});
});
how can i have the real value instead of the [object object] that i get
Try to access response.d. It’s a Asp.Net feature.
http://encosia.com/never-worry-about-asp-net-ajaxs-d-again/