How to call web service using JQuery in asp.net?

Total Post:128

Points:898

JQuery 
 1947  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. 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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.