Sunday, April 11, 2021

Ajax Post or Ajax Get

1. $.ajax({ type: "POST", url: "/Atrb_SubCategory/Create2", data: { Sub_Name: $("#Sub_Name").val(), Sort: $("#Sort").val() }, success: function (data) { //alert(data); var jsonObj = JSON.parse(data); $("#ctrl_code").html(jsonObj[0].Sub_Code); }, error: function (data) { alert("error : " + data); }, failed: function (data) { alert("failed : " + data); } });

No comments:

Post a Comment

Linq Expression syntax for where condtion in linq

(Expression<Func<T, bool>> filter)