views:

11

answers:

1

How to Create a webpart using client object Model and get the current site,loop through the List and Libraries get the documents which are uploaded by today & yesterday

A: 

If using the object model is important, the SPSiteDataQuery class may fit the bill. This allows you to query for the items of interest within a site collection. A query like this will be faster and more robust than manually iterating through the lists and libraries via object model. There are some good examples on MSDN.

Jason Weber