private void cmdBack_Click(object sender, System.EventArgs e) { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); HtmlForm FrmNewDocument = (HtmlForm)this.Page.FindControl("PostilDocument"); TextBox tmpText; tmpText = (TextBox)FrmNewDocument.FindControl("txtPostil"); long PostilID; try { PostilID = df.AddPostil(UserName, DocID, tmpText.Text, 4, ProjectID, 2); df.BackDocument(DocID); UploadFile(PostilID); } catch (Exception ex) { UDS.Components.Error.Log(ex.ToString()); } finally { df = null; } Response.AddHeader("Refresh", "1"); }
private void cmdBack_Click(object sender, System.EventArgs e) { UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); HtmlForm FrmNewDocument = (HtmlForm)this.Page.FindControl("PostilDocument"); TextBox tmpText; tmpText = (TextBox)FrmNewDocument.FindControl("txtPostil"); long PostilID; try { PostilID = df.AddPostil(UserName,DocID,tmpText.Text,4,ProjectID,2); df.BackDocument(DocID); UploadFile(PostilID); } catch(Exception ex) { UDS.Components.Error.Log(ex.ToString()); } finally { df = null; } Response.AddHeader("Refresh","1"); }