how to acess value from webmethod using jquery

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

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

[WebMethod]
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.

regards

Baiju




Responses

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

Up
0
Down
Hi,

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-
http://stackoverflow.com/questions/17655807/how-to-send-and-retrieve-data-from-web-method-using-jquery-ajax-call


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