private void GetAttachments(decimal incidentId) { uploaderFinalCorrectiveAction.SetAttachmentRecordStep("1"); uploaderFinalCorrectiveAction.SetReportOption(false); uploaderFinalCorrectiveAction.SetDescription(false); // Specifying postback triggers allows uploader to persist on other postbacks (e.g. 8D checkbox toggle) //uploader.RAUpload.PostbackTriggers = new string[] { "btnSubnavSave", "btnSaveReturn", "btnSaveContinue", "btnDelete", "btnDeleteInc", "btnSubnavIncident", "btnSubnavContainment", "btnSubnavRootCause", "btnSubnavAction", "btnSubnavApproval" }; //uploader.RAUpload.PostbackTriggers = new string[] { "btnSubnavSave", "btnSaveReturn", "btnSaveContinue", "btnDelete", "btnDeleteInc", "btnSubnavIncident", "btnSubnavContainment", "btnSubnavRootCause", "btnSubnavAction", "btnSubnavApproval" }; int attCnt = EHSIncidentMgr.AttachmentCounts(incidentId, 1);//Apply 1 for getting the attachment for Final Corrective Action section. int px = 128; if (attCnt > 0) { px = px + (attCnt * 30) + 35; uploaderFinalCorrectiveAction.GetUploadedFilesIncidentSection(40, incidentId, "", (int)Incident_Section.FinalCorrectiveAttachment); } else { uploaderFinalCorrectiveAction.GetBlinkATTACHMENT(); } /* * */ // Set the html Div height based on number of attachments to be displayed in the grid: //dvAttachLbl.Style.Add("height", px.ToString() + "px !important"); //dvAttach.Style.Add("height", px.ToString() + "px !important"); }