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.
- Input Parameter for web service: customer Id
- Output Parameter: ProductId, ProductName, ProductPrice, ProductURL, ProductAvailable
I am unable to find examples related to this functionality on internet.
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.
- Input Parameter for web service: customer Id
- Output Parameter: ProductId, ProductName, ProductPrice, ProductURL, ProductAvailable
I am unable to find examples related to this functionality on internet.
Share Improve this question edited Apr 25, 2011 at 7:01 abatishchev 100k88 gold badges301 silver badges442 bronze badges asked Apr 25, 2011 at 7:00 ChrisChris 2,30311 gold badges48 silver badges86 bronze badges 1- 2 possible duplicate of How to use jQuery to call an asp web service? – abatishchev Commented Apr 25, 2011 at 7:04
2 Answers
Reset to default 3you should use jQuery.ajax.
How to use jQuery to call an ASP.NET web service?
http://encosia./2008/03/27/using-jquery-to-consume-aspnet-json-web-services/
http://dotnetslackers./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./file/8hHJll-R/Pagemethod-2.html
Check out these links:--
http://encosia./2008/03/27/using-jquery-to-consume-aspnet-json-web-services/
http://msdn.microsoft./en-us/library/bb763183.aspx