sharepoint - how to write the SPQuery for getting all data of contact list? -


I am writing SPQuery to get data in the contact list of the SharePoint site. But how do I write? This means that I want to retrieve the data:

  name: aaa cell number: 13123131 address: some address here .. so on ...  

Previous name (built by me) in the given search text box How to do it What does the query mean to me? (Please syntax).

  string site url = "http: // sharepointserver /"; String webUrl = "MySubSite"; (SPS ite site = new SPS ite (site url)) (SPWeb web = site. OpenWeb (web url)) {SPList list = web.Lists ["contact"]; String last name = "smith"; SPQuery q = new SPQuery (); Q.Query = string.Format ("& lt; ou <">  FieldRef name = 'title' />  gt; & lt; / eq & gt; & lt; / where & gt; ", lastName); SPListItemCollection item = list.GetItems (q); Forex currency (item SPLIT item) {console. Videoline (item ["title"]); }}}  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -