Saturday, 13 August 2011

Using SPsitedataquery to retrieve data from a specific lists\libraries only


A tip about using SPsitedataquery - As you know SPsitedataquery helps you to query across multiple lists, which may be located in multiple Web sites in the same Web site collection.

But what if you want to only retrive data from some pre-specified lists\libries only.

Well you can then use the tag to specify various lists.

example

query.Lists =

ListNameId - Is a Guid for the List.

Enjoy!

Ads by Google

No comments:

Post a Comment