Hi,
Please try the example below. It shows you how to get the upload files info after uploaded.
- <%@ Page Language="C#" %>
-
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <script runat="server">
-
- protected void uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)
- {
- btnSubmit.Visible = true;
- }
-
- protected void btnSubmit_Click(object sender, EventArgs e)
- {
- for (int i = 0; i < uploader1.Items.Count; i++)
- {
- label1.Text += uploader1.Items[i].FileName;
- label1.Text += "<br/>";
- }
- }
- </script>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>example</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <CuteWebUI:UploadAttachments ID="uploader1" runat="server" OnUploadCompleted="uploader1_UploadCompleted">
- </CuteWebUI:UploadAttachments>
- <asp:Button ID="btnSubmit" runat="server" Text="Get upload file info" Visible="false" OnClick="btnSubmit_Click" />
- <br />
- <asp:Label ID="label1" runat="server"></asp:Label>
- </form>
- </body>
- </html>
Regards,
Ken