Он закодирован на C# MVC .NET 6
Код: Выделить всё
Java Script::::
function GetThingsContaining() {
$.ajax({
type: "POST",
url: "GetThingsContaining/MyController",
data: { searchCriteria: "afd" },
dataType: "json",
success: function (data) {
//do work if successful
},
error: function (data) {
alert("Well that stinks")
},
});
}
Код: Выделить всё
Controller Action
[HttpPost]
public IActionResult GetThingsContaining(string searchCriteria) {
return PartialView("~/Views/Investments/_SearchDataList.cshtml", returnModel);
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... eturns-404