I am using ASP.Net-MVC3
and I use this query in
Layout.cshtml:
$(function() {
$.ajax({
url: '@Url.Action("EtiketGetir", "Etiket")',
type: "POST",
data: {
data: data
},
success: function(msg) {},
error: function(msg) {}
});
That works in layout.cshtml
, but I copied that code and pasted to test.js
file and it stopped working.