Hi,
I am calling a javascript method from the click of a link:
');"><%# Eval("projectIdentifier") %>
The javascript:
As you can see, the Ajax call is to a web method HelloWorld() which is inside an asmx page:
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
I do not get a response from the web method. When I try to debug the method by putting a break point, I see that the method is being 'hit'.
But the problem is that the response does not go back to the javascript function. I dont even get an error (OnError() does not give a result).
I tried inspecting the 'onclick' element from the browser and no help from there as well.
Am I missing some settings somewhere. Any kind of help is greatly appreciated.
Regards,
Pranjal
Loading
Iftikar HussainPosted Aug 8, 2013, 8:20 AM
Have you set your service as ScriptService
Regards,
Iftikar