¡@

Home 

2014/10/16 ¤W¤È 12:10:16

jquery Programming Glossary: webmethods.asmx

JQuery ajax call to httpget webmethod (c#) not working

http://stackoverflow.com/questions/2651091/jquery-ajax-call-to-httpget-webmethod-c-not-working

First of all verify Server side. Rename webmethods.aspx to webmethods.asmx. Verify that you placed Inside of and a httpHandlers for asmx.. service. Open in you Web Browser URL like http localhost webmethods.asmx AjaxGet id li1234 If you receive back something like xml version.. id ' ' string serializes in JSON format .ajax type GET url webmethods.asmx AjaxGet id idAsJson contentType application json charset utf..

JQuery ajax call to httpget webmethod (c#) not working

http://stackoverflow.com/questions/2651091/jquery-ajax-call-to-httpget-webmethod-c-not-working

using any Microsoft technologies on the client side. First of all verify Server side. Rename webmethods.aspx to webmethods.asmx. Verify that you placed Inside of and a httpHandlers for asmx extension ScriptHandlerFactory also exist in the config configuration.. from System.Web.Services.WebService. Now you could test the service. Open in you Web Browser URL like http localhost webmethods.asmx AjaxGet id li1234 If you receive back something like xml version 1.0 encoding utf 8 string xmlns http tempuri.org li1234.. prefer it. var id li1234 version 1 works var idAsJson ' ' id ' ' string serializes in JSON format .ajax type GET url webmethods.asmx AjaxGet id idAsJson contentType application json charset utf 8 success function msg alert msg.d var msg d li1234 error..