Well, I think he is trying to send multiple parameters in
JSON
format in the
GetSynchronousJSONResponse()
method, that's all.
If this is the case, then, take a look at below. I've added another parameter (State). You can follow this to add more parameters.
function HelloMe()
{
var result = GetSynchronousJSONResponse('<%= Page.ResolveUrl("~/WebService.asmx/HelloMe") %>', '{"Name":"' + document.getElementById('txtName').value + '","State":"' + document.getElementById('txtState').value + '"}');
result = eval('(' + result + ')');
alert(result.d);
}
Best of luck.