Click here to Skip to main content
15,919,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?')) {
                url: '@Url.Action("RemoveFile", "FileUpload")',
                type: "Get",
                data: { ID: id },
                dataType: "html",
                success: function (partialView) {

What I have tried:

I tried everything I could think of. I have posted the question on Expert-Exchange. no luck

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900