protected void btnUpload_Click(object sender, EventArgs e) { try { FileUpload fUpload = gvFiles.FooterRow.FindControl("fileUploadsCart") as FileUpload; FacadeManager facade = new FacadeManager(); if (Session["orderid"] != null) { facade.UploadFile(fUpload, Session["orderid"].ToString()); GetFileList(); } } catch (Exception ex) { } }
protected void UploadFile_Click(object sender, EventArgs e) { try { FileUpload fUpload = gvFiles.FooterRow.FindControl("UploadFile_Click") as FileUpload; FacadeManager facade = new FacadeManager(); if (ViewState["OrderID"] != null) { facade.UploadFile(fileUploadsCart, ViewState["OrderID"].ToString()); GetFileList(); } } catch (Exception ex) { } }