protected void BtnConvertClick(object sender, EventArgs e) { var docs = new ConvertDocumentsclass(); var filelist = new ArrayList(); foreach (ListItem item in chkItems.Items) { if (item.Selected) filelist.Add(item.Text); } docs.SourceLibrary = ddlSourceLists.SelectedValue; docs.DestinationLibrary = ddlTargetLists.SelectedValue; _jobId = docs.ConvertDocuments(SPContext.Current.Site, SPContext.Current.Web, filelist, (ConvertDocumentsclass.DocSaveFormat)Enum.Parse(typeof(ConvertDocumentsclass.DocSaveFormat), ddlTypes.SelectedValue), (ConvertDocumentsclass.DocSaveBehaviour)Enum.Parse(typeof(ConvertDocumentsclass.DocSaveBehaviour), ddlOverWrite.SelectedValue)); ShowResult(_jobId); }
private void ShowResult(Guid jobId) { var docs = new ConvertDocumentsclass(); // lblResult.Text = DateTime.Now.ToString() + " - " + docs.GetResult(jobId); lblResult.Text = DateTime.Now.ToString(CultureInfo.InvariantCulture) + " - " + docs.GetResult(jobId); }