void uploadConnector_UploadComplete(object sender, UploadSessionEventArgs e) { if (UploadComplete != null) { UploadComplete(this, e); } }
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(); } } }
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(); } }
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(); } } }
void uploadConnector_UploadComplete(object sender, UploadSessionEventArgs e) { if (UploadComplete != null) UploadComplete(this, e); }