I am studying ASP MVC and I ran into a problem. It is necessary that when you click on a table cell from a view, a request is sent to the controller, which returns PartialView and displays it on the page. Sending a request to the controller:
$('td').click(function() { $.ajax({ url: '/Home/OneDay', type: 'POST', dataType: 'html', success: function(data){ $().html(data); }})}); The controller itself:
[HttpPost] public ActionResult OneDay(string id) { return PartialView(); } The problem is that the partial view sent back is not displayed on the page.