Hiding UI after Upload

Last post 05-25-2010, 12:04 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  05-24-2010, 7:39 AM 61271

    Hiding UI after Upload

    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 :)
     
     
  •  05-25-2010, 12:04 AM 61283 in reply to 61271

    Re: Hiding UI after Upload

    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
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    4.   
    5. <script runat="server">   
    6.   
    7.     protected void uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)   
    8.     {   
    9.         label1.Text = "upload finished and the import is starting";   
    10.     }   
    11. </script>   
    12.   
    13. <html xmlns="http://www.w3.org/1999/xhtml">   
    14. <head id="Head1" runat="server">   
    15.     <title>Large File Upload in ASP.NET</title>   
    16. </head>   
    17. <body>   
    18.     <form id="form1" runat="server">   
    19.         <CuteWebUI:Uploader ID="uploader1" runat="server" OnUploadCompleted="uploader1_UploadCompleted"  
    20.             ShowProgressBar="false" ShowProgressInfo="false" UploadingMsg="">   
    21.         </CuteWebUI:Uploader>   
    22.         <asp:Label ID="label1" runat="server"></asp:Label>   
    23.     </form>   
    24. </body>   
    25. </html>   
    26.   
    27. <script>   
    28.   
    29.        function CuteWebUI_AjaxUploader_OnStart()   
    30.         {   
    31.              var hidden=this;   
    32.              hidden.internalobject.insertBtn.style.display='none'  
    33.              hidden.internalobject.cancelBtn.style.visibility="hidden"  
    34.         }   
    35.   
    36. </script>  
    Regards,
     
    ken
View as RSS news feed in XML