Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Am New To Android. I Created json webservice in asp.net ..having one parameter and list of datas.. then am using that json webservice in android to get datas in listview...but i want to get list of datas by using parameters. for ex.. if i give Id No. The list of datas displayed in listview for that particular id no....please help me ..thanks in advance..
Posted

1 solution

See the both of links

Prepare a JSON Web Service and access it with JQuery[^]
http://www.devtechie.com/post/2011/05/26/Insert-Data-using-JSON-ASPNET-Web-services-and-jQuery.aspx[^]

For viewing List vaues see the
Demo Code
$(document).ready(function () {
       $.ajax({
           url: "http://localhost:49493/GetValues",
           type: "Get",
           success: function (data) {
               for (var i = 0; i < data.length; i++) {
                   $(" <table><tbody><tr></tr></tbody></table>
                     <table><tbody><tr><table><tbody><tr><table><tbody><tr><td></td></tr></tbody></table></tr></tbody></table></tr></tbody></table>
                     " + data[i].Name + "
                     <table><tbody><tr><table><tbody><tr><table><tbody><tr><td></td></tr></tbody></table></tr></tbody></table></tr></tbody></table>
                     " + data[i].Address + "
                     <table><tbody><tr><table><tbody><tr><table><tbody><tr><td></td></tr></tbody></table></tr></tbody></table></tr></tbody></table>
                    " + data[i].DOB + "").appendTo("#tbPerson");
               }
           },
           error: function (msg) { alert(msg); }
       });
   });
 
Share this answer
 
Comments
Member 10556609 9-Apr-14 2:33am    
Thank u Very Much For Ur Solition. but i created json webservice in Asp.net in that webservice i included 1 parameter and list of datas. and also i used that websrvice in android and get value in listview .but i want to get data from that webservice by using parameter..in android..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900