protected void Load_Attachments(int TrainingID) { DataTable dtAttachments = BLL_Crew_Training.Get_Training_Attachments(TrainingID, GetSessionUserID()); rptAttachments.DataSource = dtAttachments; rptAttachments.DataBind(); rptAttachmentse.DataSource = dtAttachments; rptAttachmentse.DataBind(); }
public string Get_Training_Attachments(int TrainingID, int UserID) { DataTable dt = BLL_Crew_Training.Get_Training_Attachments(TrainingID, UserID); UDCHyperLink aLink = new UDCHyperLink("DocURL", "", new string[] { }, new string[] { }, "_blank"); Dictionary <string, UDCHyperLink> dicLink = new Dictionary <string, UDCHyperLink>(); dicLink.Add("DisplayName", aLink); return(UDFLib.CreateHtmlTableFromDataTable(dt, new string[] { "Attachments" }, new string[] { "DisplayName" }, dicLink, new Dictionary <string, UDCToolTip>(), new string[] { "left" }, "CrewQuery-Attachments-table", "CrewQuery-Attachments-DataHeder", "CrewQuery-Attachments-Data")); }