Пример #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);
 }