how to acess value from webmethod using jquery

Posted by Klbaiju under jQuery on 4/20/2015 | Points: 10 | Views : 300 | Status : [Member] | Replies : 1
Hi ,

my application contains a webmethod and that webmethod contains an integer value like this

public static Address[] ViewAddress(string id)

string msg;
string id1 = id.Trim();
BAL objBal = new BAL();
List<Address> details = new List<Address>();
DataSet ds = objBal.ViewAddress(id1, out msg);
int count = ds.Tables[0].Rows.Count;


my requirement is to retrieve the integer value count using jquery

How it is possible.




Posted by: Jitendrasoft09 on: 4/26/2015 [Member] [MVP] Starter | Points: 25


You add row count in Address object or include integer in return type, then you will be able to access your row count in jquery.

Please refer below link-

Jitendra Kumar
If my post helps you, plz mark as an answer.

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response