Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,

My scenario is, using file upload control user can browse and select multiple svc files, once user select multiple files before uploading files, user can see browse files in table or gridview for delete any file.

Please give me idea, how to show browse files in table or grid using Asp.net.

What I have tried:

function setFileName() {
    var fileName = document.getElementById("<%=fuInvoice.ClientID %>");
    alert(document.getElementById("<%=fuInvoice.ClientID %>").value);
        var btnUpload = document.getElementById("<%=btnUpload.ClientID %>");
        if (fileName.value != undefined || fileName.value != '') {
            document.getElementById("lblFile").innerHTML = fileName.value;
            btnUpload.setAttribute("style", "visibility:visible");
            document.getElementById("dvFileList").style.display = "block"
        }
    }
Posted
Updated 11-Apr-18 3:16am

1 solution

Get started by learning how to react to multiple files being selected in the upload control and how to access their details

Use the HTML5 File API to Work with Files Locally in the Browser ― Scotch[^]

Then all you need to do is put the file details in a table. Google "create table jquery" for examples of how to do that. Alternatively if you're looking for a ready-made solution that does everything you need to do then google for that, I'm sure there are examples out there.
 
Share this answer
 
Comments
rameshvar 12-Apr-18 1:44am    
Thanks Dear

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