¡@

Home 

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

jquery Programming Glossary: ajaxget

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

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

Call script type text javascript var id li1234 function AjaxGet .ajax type GET url webmethods.aspx AjaxGet data 'id' ' id.. function AjaxGet .ajax type GET url webmethods.aspx AjaxGet data 'id' ' id ' contentType application json charset utf.. public static string AjaxGet string id return id Web.config webServices protocols add name..

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

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

a POST everything works fine. Please see my code below. Ajax Call script type text javascript var id li1234 function AjaxGet .ajax type GET url webmethods.aspx AjaxGet data 'id' ' id ' contentType application json charset utf 8 dataType json.. code below. Ajax Call script type text javascript var id li1234 function AjaxGet .ajax type GET url webmethods.aspx AjaxGet data 'id' ' id ' contentType application json charset utf 8 dataType json async false success function msg alert success.. UseHttpGet true ResponseFormat System.Web.Script.Services.ResponseFormat.Json public static string AjaxGet string id return id Web.config webServices protocols add name HttpGet protocols webServices The URL being used ..........