Dudi44:
Hi! I'm uploading a CSV file and importing some of the uploaded file's data into a DB based on certain criteria, all in one go. Once uploaded, I need to hide the Upload UI before starting the import and give the user notification that the upload is finished and the import is starting. Not sure how to do this and any help will be appreciated :)
Hi Dudi44,
Please try the example below
- <%@ 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)
- {
- label1.Text = "upload finished and the import is starting";
- }
- </script>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- <title>Large File Upload in ASP.NET</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <CuteWebUI:Uploader ID="uploader1" runat="server" OnUploadCompleted="uploader1_UploadCompleted"
- ShowProgressBar="false" ShowProgressInfo="false" UploadingMsg="">
- </CuteWebUI:Uploader>
- <asp:Label ID="label1" runat="server"></asp:Label>
- </form>
- </body>
- </html>
-
- <script>
-
- function CuteWebUI_AjaxUploader_OnStart()
- {
- var hidden=this;
- hidden.internalobject.insertBtn.style.display='none'
- hidden.internalobject.cancelBtn.style.visibility="hidden"
- }
-
- </script>
Regards,
ken