My ajax call. I am not getting the desired response as string. Can anyone help me in this regard. Thanks in advance.
function Function1() {
alert(\"In Ajax C
Your code is working fine in my machine.May be you forgot to call it by document load in Jquery. My code
and my code behind file
[WebMethod]
public static string MyFunction1(string parameter)
{
//try
//{
// if (true)
// {
// return "test";
// }
//}
//catch (Exception ex)
//{
// return ex.Message;
//}
return parameter;
}