To pass a string of parameters in Ajax call you have to first
stringify
the string as below. Let suppose you want to send two values as parameters than you have to do like this.
var params = JSON.stringify({ val1: "Value1", val2: 'Value2' });
and in
$.ajax{
......
........
........
data: params
}
Secondly to get these parameters in the Web Method you should define the web method definition with the same parameter names as defined in the string created above.
like to get the above passing parameters you have to create a web method like.
[WebMethod]
public static string GetData(string val1, string val2)
{
}
HOpe it will help you.. :)