ApartamentyReg
New Member
I am using following code for getting the feed from sharepoint to asp.net:\[code\]Sharepointlist.Lists listService = new Sharepointlist.Lists(); System.Net.NetworkCredential cred = new System.Net.NetworkCredential("123", "",""); //listService.Credentials = cred; //System.Net.CredentialCache.DefaultNetworkCredentials; listService.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; //listService.Url = "http://---/_vti_bin/lists.asmx"; XmlNode n = listService.GetListItems("Tracker", null, null, null, null, null); List<string> lstdata = http://stackoverflow.com/questions/12638476/new List<string>(); for (int i = 0; i < n.ChildNodes[1].ChildNodes.Count; i++) { if (n.ChildNodes[1].ChildNodes.Attributes != null) { lstdata.Add(n.ChildNodes[1].ChildNodes.Attributes["ows_Title"].Value + " " + n.ChildNodes[1].ChildNodes.Attributes["ows_TaskName"].Value);\[/code\]}\[code\] } Gridview1.DataSource = lstdata; Gridview1.DataBind(); \[/code\]desired data are coming but they are not coming seperately.so how can i bind data seperatley in different column or can say how can we fetch the data from nodelist seperately?Thanks.