How to update DIV in _Layout.cshtml with message after Ajax form is submitted?
Currently I have a Razor View like this: TotalPaymentsByMonthYear.cshtml @model MyApp.Web.ViewModels.MyViewModel @using (@Ajax.BeginForm("TotalPaymentsByMonthYear", new { reportName = "CreateTotalPaymentsByMonthYearChart" }, new AjaxOptions { UpdateTargetId = "chartimage"})) { <div class="report"> // MyViewModel fields and validation messages... <input type="submit" value="Generate" /> </div> } <div id="chartimage"> @Html.Partial("ValidationSummary") </div> I then display a PartialView that has a @Html.ValidationSummary() in case of validation errors. ReportController.cs public