In newer versions of ASP.NET MVC such as 4 or 4.5, when you used Ajax.BeginForm like
@using (Ajax.BeginForm("Index", "MyController”,
new AjaxOptions()
{
UpdateTargetId = "chart",
InsertionMode = InsertionMode.Replace,
HttpMethod = "post",
OnSuccess = "loadChart",
}
))
{
<div>
<input type="submit" value="Load Chart" />
</div>
}
Continue reading “Ajax.BeginForm not work in ASP.NET MVC 4 and 4.5 ?”