Posts

Showing posts with the label Binding a Attachment to a Visual Webpart in sharepoint 2013

Binding a Attachment to a Visual Webpart in sharepoint 2013

 private void GetMoreCEO()         {             using (SPSite osite = new SPSite(SPContext.Current.Web.Url))             {                 using (SPWeb oweb = osite.OpenWeb())                 {                     SPList olist = oweb.Lists.TryGetList("CEOMessage");                     SPListItemCollection collListItems = olist.Items;                     DataTable dt = new DataTable();                     dt.Columns.Add("Attachments", typeof(string));                     dt.Columns.Add("Title", typeof(string));                 ...