When you submit the form, if there is an error (for example, if ModelState.IsValid
is false
), the form is re-rendered with the View(model);
statement in the Create
action.
this causes the view to include the existing partial views for each Mfo
, including any appended ones, resulting in duplicates because the client-side javascript also appends additional partials.