예제 #1
0
 void uploadConnector_UploadComplete(object sender, UploadSessionEventArgs e)
 {
     if (UploadComplete != null)
     {
         UploadComplete(this, e);
     }
 }
예제 #2
0
        protected void slickUpload_UploadComplete(object sender, UploadSessionEventArgs e)
        {
            uploadResultPanel.Visible = true;
            uploadPanel.Visible = false;

            if (e.UploadSession != null && e.UploadSession.State == UploadState.Complete)
            {
                if (e.UploadSession.UploadedFiles.Count > 0)
                {
                    
                    // Simulate post processing
                    for (int i = 0; i <= 100; i++)
                    {
                        e.UploadSession.ProcessingStatus["percentComplete"] = i.ToString();
                        e.UploadSession.ProcessingStatus["percentCompleteText"] = i.ToString() + "%";

                        SlickUploadContext.UpdateSession(e.UploadSession);

                        System.Threading.Thread.Sleep(100);
                    }


                    resultsRepeater.DataSource = e.UploadSession.UploadedFiles;
                    resultsRepeater.DataBind();
                }
            }            
        }
예제 #3
0
        protected void slickUpload_UploadComplete(object sender, UploadSessionEventArgs e)
        {
            uploadResult.Text = "Upload Result: " + e.UploadSession.State.ToString();

            if (e.UploadSession.State == UploadState.Error)
                uploadResult.Text += "<br /><br /> Message: " + e.UploadSession.ErrorSummary;

            if (e.UploadSession.State == UploadState.Complete) 
            {
                uploadFileList.DataSource = e.UploadSession.UploadedFiles; 
                uploadFileList.DataBind(); 
            }
        }
예제 #4
0
        protected void uploadConnector_UploadComplete(object sender, UploadSessionEventArgs e)
        {
            uploadResultPanel.Visible = true;
            uploadPanel.Visible = false;

            if (e.UploadSession != null && e.UploadSession.State == UploadState.Complete)
            {
                if (e.UploadSession.UploadedFiles.Count > 0)
                {
                    resultsRepeater.DataSource = e.UploadSession.UploadedFiles;
                    resultsRepeater.DataBind();
                }
            }
        }
예제 #5
0
 void uploadConnector_UploadComplete(object sender, UploadSessionEventArgs e)
 {
     if (UploadComplete != null)
         UploadComplete(this, e);
 }