Hi,
I have a file upload control which is inside an update panel.
I need to restrict the file upload to 6 files and provide an option to delete the uploaded file. I mean, if there are 6 files, then the user should not be able to upload. And if the user deletes any file and max file is not 6, then the user should be able to add a new file.
I have used the below code, not sure how to check for the number of files and having a delete option near each uploaded file.
<asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true"> <ContentTemplate> <asp:FileUpload ID="FileUpload1" runat="server" AllowMultiple="true" ClientIDMode="Static" /> <asp:Button ID="btnUpload" Text="Upload" runat="server" OnClick ="UploadMultipleFiles" /> <asp:Label ID=" ...

Go to the complete details ...