There are some simple steps to understand how to upload the multiple image file by the single file upload control.
Step 1. Now, create a new ASP.NET Web Application.
Step 2. Write the code, given below, in default.aspx page.
- <%@ Page Language="C#" AutoEventWireup="true"CodeBehind="UploadMultipleFileDemo.aspx.cs"
- Inherits="MultipleFile.UploadMultipleFileDemo" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title></title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:ScriptManager ID="SM" runat="server"> </asp:ScriptManager>
- <asp:UpdatePanel ID="UpdFileUpload" runat="server">
- <ContentTemplate>
- <asp:FileUpload ID="FuImage" multiple="multiple" runat="server" />
- <asp:Button ID="btnSaveFile" Text="Save" runat="server" onclick="btnSaveFile_Click" /> </ContentTemplate>
- <Triggers>
- <asp:PostBackTrigger ControlID="btnSaveFile" />- </Triggers>
- </asp:UpdatePanel>
- </div>
- </form>
- </body>
- </html>



Tuan NguyenPosted Feb 3, 2020, 7:59 PM
Thanks a lot