最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Getting data from web service in ASP.NET by jQuery - Stack Overflow

programmeradmin2浏览0评论

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
Add a ment  | 

2 Answers 2

Reset to default 3

you 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

发布评论

评论列表(0)

  1. 暂无评论