hello there is a request
function update(value) { $.ajax({ url: "/Home/Test", type: "POST", data: value, success: function (data) { $("#data").text(data); } }) } Controller
public ActionResult Test(string value) { return View(value); } Visually, nothing happens, but in the Chrome inspector it says that the server responded with an error 500 Internal Server Error
The request happens when you type in input
@using (Ajax.BeginForm(new AjaxOptions { })) { @Html.TextBox("list", null, new { @class = "sort", @oninput = "update(this.value)", @parametr = "this.value" }); } UPDATE Changed method type to string
public string Test(string value) { return value; } Like the value returns and it is written in a div but it is not displayed on the page.