﻿
{"id":1744,"date":"2013-06-10T10:56:14","date_gmt":"2013-06-10T10:56:14","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=1744"},"modified":"2013-06-10T18:28:41","modified_gmt":"2013-06-10T18:28:41","slug":"asp-net-mvcde-jquery-ile-post-islemi","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/asp-net-mvcde-jquery-ile-post-islemi\/","title":{"rendered":"Asp.NET MVC&#8217;de JQuery \u0130le Post \u0130\u015flemi"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Asp.NET MVC projelerinde JQuery ile bir butona sayfay\u0131 Post ettirmek i\u00e7in a\u015fa\u011f\u0131daki kodu kullanabiliriz.<br \/>\nView katman\u0131nda bulunan butonumuz,<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n@using (Html.BeginForm(null, null, FormMethod.Post))\r\n{\r\n   &lt;input type=&quot;submit&quot; value=&quot;Button&quot; id=&quot;btn&quot; \/&gt;\r\n}\r\n<\/pre>\n<p>JQuery kodlar\u0131m\u0131z,<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$('#btn').click(function () {\r\n   $(this).closest('form')&#x5B;0].submit();\r\n});\r\n<\/pre>\n<p>Bu JQuery kodu &#8220;[HttpPost]&#8221; attributeuyla i\u015faretlenmi\u015f ActionResult tipinden metodlar\u0131da tetiklemektedir.<br \/>\nFaydalanman\u0131z dile\u011fiyle..<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Asp.NET MVC projelerinde JQuery ile bir butona sayfay\u0131 Post ettirmek i\u00e7in a\u015fa\u011f\u0131daki kodu kullanabiliriz. View katman\u0131nda bulunan butonumuz, @using (Html.BeginForm(null, null, FormMethod.Post)) { &lt;input type=&quot;submit&quot; value=&quot;Button&quot; id=&quot;btn&quot; \/&gt; } JQuery kodlar\u0131m\u0131z, $(&#8216;#btn&#8217;).click(function () {&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,18,19,345],"tags":[746,748,283,755,440],"class_list":["post-1744","post","type-post","status-publish","format-standard","hentry","category-asp-net-mvc","category-javascript","category-jquery","category-mvc-4-0","tag-asp-net-mvc","tag-jquery","tag-mvc","tag-mvc-4-0","tag-post"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/1744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=1744"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/1744\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=1744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=1744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=1744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}