Hi,
i would like to pass multiple parameters in my callback function and don't know who to do this...
This would be the C# code:
Response.Clear();
Response.ContentType = "text/plain";
Response.Write("content of param1");
Response.Write("content of param2");
Response.End();
and the JS code:
$.getJSON("localhost/myFunction", dataString,
function(param1, param2) {
alert(param1);
alert(param2);
});
How would i perform the actual mapping of parameter in the C# code, so JavaScript recognizes them as the 2 parameters of the callback function? ( In detail i want to pass a JSON-object and a "status" parameter here... )