skip to Main Content

asp.net mvc – ajax form (Ajax.beginform) in partial view redirects to show json response when the partial view is rendered via ajax

I have a partial view with an ajax form @using (Ajax.BeginForm("SaveSettings", "Config", new AjaxOptions { HttpMethod = "Post", OnSuccess="settingsUpdateSucces" }, new { enctype = "multipart/form-data", id = "SaveSettings" })) { @Html.HiddenFor(m => m.Id) //other fields go here <button id="btnSaveSettings" type="submit"…

VIEW QUESTION
Back To Top
Search