I am trying to call a webservice(.asmx) file using javascript. Heres a detailed explanation of what I am trying to do.
I have a two WebApplication projects one contains the WebService.asmx file, the other contains the javascript file. I am trying to call the method HelloWorld() located in WebService.asmx from the javascript file.
Note: I am trying to do this without using jQuery.
Please give a detailed explanation (Code and some documentation), I reviewed many examples and tried many different ways none of which worked for me.
Heres a list of things that I have tried:
Added the following code to my script manager.
<Services> <asp:ServiceReference Path="http://localhost..." /> </Services>
Since some details are missing from your questions, I would suggest you check the following:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.