Reputation: 2303
I have a web service which is returning me a list [better say a table with 5 columns and could be n number of rows.]
How can I get the data from the web service by jQuery and show it in the table structure in UI.
I am unable to find examples related to this functionality on internet.
Upvotes: 2
Views: 4347
Reputation: 18797
you should use jQuery.ajax.
How to use jQuery to call an ASP.NET web service?
http://encosia.com/2008/03/27/using-jquery-to-consume-aspnet-json-web-services/
http://dotnetslackers.com/articles/ajax/Using-jQuery-with-ASP-NET.aspx
Also, I have written a plugin that serializes the data to pass to your web service and contains some samples. you can download it at: http://www.4shared.com/file/8hHJll-R/Pagemethod-2.html
Upvotes: 3
Reputation: 252
Check out these links:--
http://encosia.com/2008/03/27/using-jquery-to-consume-aspnet-json-web-services/
http://msdn.microsoft.com/en-us/library/bb763183.aspx
Upvotes: 3