SPSite site = new SPSite("http://localhost");
SPWeb web = site.OpenWeb();
SPList item = web.Lists["Friends"];
SPQuery spQuery = new SPQuery();
spQuery.Query = " " +
"Senthil ";
SPListItemCollection ListItems = item.GetItems(spQuery);
foreach (SPListItem items in ListItems)
{
Response.Write((items["Name"].ToString()) +
"
");
}
}
Showing posts with label Retreiving value from SharePoint List. Show all posts
Showing posts with label Retreiving value from SharePoint List. Show all posts
Sunday, November 21, 2010
SPQuery Value retreiving
Subscribe to:
Posts (Atom)