Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Did you return your response as json format from WebMethod? Commented Nov 22, 2013 at 5:38
  • I followed this stackoverflow.com/questions/5364343/… where adding [ScriptMethod(ResponseFormat = ResponseFormat.Json)] will automatically return result as json format Commented Nov 22, 2013 at 5:41
  • Use something like FireBug to monitor the network requests, so you can see exactly what is being returned from the web service - if you're getting undefined back, your web service may be generating an error. I list to wrap lists like this up in an object, along with a boolean success/failure flag and an error message string. Wrap the guts of the web service in a try/catch loop, and in the catch block set the success flag to false, and set the returned objects error message to the exceptions error message. Commented Dec 7, 2013 at 1:03