Create Datatable using .Net Client Context in SharePoint 2010
Create Data Table while using SharePoint 2010 Client Context with .Net Code I am using .net code to access SharePoint List.I created a method ExecuteSPQuery() which returns Data Table. For that I wrote below code. public static DataTable ExecuteSPQuery() { DataTable dtData = new DataTable(); Microsoft.SharePoint.Client.ListItemCollection listCollection = null; ClientContext context = new ClientContext(“SITE_URL”); try { Site oWebsite = context.Site; context.AuthenticationMode = ClientAuthenticationMode.Anonymous; List list = … Read more