i have the model with a list of multiple files.User can update the list of files. If I display the list as partial view I have no problem to update the partial view using Ajax call without reloading page,unfortunately there is no binding with model. @Html.Partial("pDisplayFilesBeforeSave", Model.FilesList) I tried to use @Html.EditorFor(Function(Model) Model.FilesList()). And there is no issues with the binding, But I don not know how to refresh the @Html.EditorFor after user removed the file. My jscript function below> function CancelUpload(id) { if (confirm('Are you sure you want to cancel upload for this file?')) { $.ajax({ url: '@Url.Action("RemoveFile", "FileUpload")', type: "Get", data: { ID: id }, dataType: "html", success: function (partialView) { $('#div_to_loadFiels_PartialView').html(partialView); }, }); } }
I tried everything I could think of. I have posted the question on Expert-Exchange. no luck
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)