{"id":455,"date":"2022-08-30T15:01:38","date_gmt":"2022-08-30T15:01:38","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/500-unknown-web-method-when-i-send-data-using-ajax-and-webmethod-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:01:38","modified_gmt":"2022-08-30T15:01:38","slug":"500-unknown-web-method-when-i-send-data-using-ajax-and-webmethod-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/500-unknown-web-method-when-i-send-data-using-ajax-and-webmethod-collection-of-common-programming-errors\/","title":{"rendered":"\u201c500: Unknown web method\u201d when i send data using $.ajax and WebMethod-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to send data via Ajax to my database, using the JQuery Ajax function and and WebMethod in my C# code. But it&#8217;s not working. Any ideas?<\/p>\n<pre><code>$(function() {\n    $('#Add').click(function() {\n        var $dialog = $('<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-09 19:43:34. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to send data via Ajax to my database, using the JQuery Ajax function and and WebMethod in my C# code. But it&#8217;s not working. Any ideas? $(function() { $(&#8216;#Add&#8217;).click(function() { var $dialog = $(&#8216; Originally posted 2013-11-09 19:43:34.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-455","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=455"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/455\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}