Jquery_Ajax_Partial View ile veri gönderimi ( Append-Html)
<pre> <code> $("#baslat").click(function () { var deger = "mal"; $.ajax({ async: false, type: "POST", url: '/Home/SepeteAtAdet', contentType: "application/json;", dataType: "json", data: "{'UrunId':'" + UrunId + "','BirimFiyat':'" + tutar+"'}", success: function (data) { $(".table-striped").append(data); } }).done(function (d) { $("tbody").html(d); }).fail(function () { alert("Hata oluştu.."); }).always(function () { }); });</code></pre>
0 Yorum