Home > DeveloperSection > Forums > How to call web service using JQuery in asp.net?
Ashish Pandey

Total Post:128

Points:898
Posted on    February-16-2013 7:49 AM

 JQuery JQuery 
Ratings:


 1 Reply(s)
 1170  View(s)
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!



AVADHESH PATEL

Total Post:604

Points:4228
Posted on    February-18-2013 2:04 AM

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




Don't want to miss updates? Please click the below button!

Follow MindStick