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

Ashish Pandey

Total Post:128

Points:898
Posted by  Ashish Pandey
JQuery 
 1498  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. AVADHESH PATEL

    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



Answer

NEWSLETTER

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