Rendering a simple ASP.NET MVC PartialView using JQuery Ajax Post call
问题 I have the following code in my MVC controller: [HttpPost] public PartialViewResult GetPartialDiv(int id /* drop down value */) { PartyInvites.Models.GuestResponse guestResponse = new PartyInvites.Models.GuestResponse(); guestResponse.Name = "this was generated from this ddl id:"; return PartialView("MyPartialView", guestResponse); } Then this in my javascript at the top of my view: $(document).ready(function () { $(".SelectedCustomer").change( function (event) { $.ajax({ url: "@Url.Action(