Encountering a issue where the partial view is repeating after post back, despite the functionality working correctly. Here is the code snippet from the View:
@using (Ajax.BeginForm("MarkDefiniteDischargePatient", "PDDD",new { },
new AjaxOptions
{
OnSuccess = "onSuccess",
HttpMethod = "POST",
UpdateTargetId = "div_DefiniteDischarge"
},
new
{
@name = "DefiniteDischargeForm",
@id = "frmDefiniteDischarge" }
))
{
Html.RenderPartial("DefiniteDischargePartial", Model);
}
A separate Partial View contains a div with the id div_DefiniteDischarge. A screenshot of the console has been attached for clarity. How can I remove this redundant div?