HOW TO CALL WEB SERVICE USING JQUERY IN ASP.NET?

Total Post:128

Points:898
JQuery 
 1716  View(s)
Ratings:
Rate this:

Hi Expert!

I have working on asp.net project. I want to call exist web service method into my asp.net application using JQuery.

Can you provide me demo on web service with JQuery.

Please help me ASAP!

Thanks in advance!

  1. Post:604

    Points:4228
    Re: How to call web service using JQuery in asp.net?

    Hi Ashish!


    You can used below line of code for calling Web Service using JQuery

    <script language="javascript" type="text/javascript">
                $.ajax({
                    type: "POST",
                    url: "http://WebServiceWithJQuery/webservice.asmx/getSumJson",
                    data: "{null}",
                    contentType: "application/json; charset=utf-8",
                    success: ajaxCallSucceed,
                    dataType: "json",
                    failure: ajaxCallFailed
                });
            }
        </script>


    For more details and demo, read full article from below link


    http://tempuri.org?link=new



      Modified On Mar-29-2018 10:54:50 PM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!