I have a web Method in my C# that is called via Jquery ajax method. The web method should return an object back to the Jquery which will be used to populate.
I have tried returning a JsonResult object, the actual object and nothing seems to work! I’m not using MVC (Unfortunately). Is there a way that I can return an object from my web method which can be used by my AJAX method?
here is the link for my JQuery AJAX method
http://pastebin.com/tRSaY5rG
http://pastebin.com/WajXyPMM
Thanks!!
I have used JQuery to get results from a database and populate a UL on a page with the items. Is this what you were looking for?
Javascript
ASPX
The bit that code me struggling to get this working was: