SPQuery Returns All of the Items

August 31, 2010    ,
During a development project, calling SPQuery returned all items from list! Looks like it just ignored the filters we applied. SPList list = new SPSite ( "http://MySharePointSite" ).OpenWeb().Lists[listName]; SPQuery query = new SPQuery (); query.Query = "<Query><…

Change PDF Icon in SharePoint

August 30, 2010    , , ,
By default, SharePoint does not include PDF document file type icon. So we need to do the below changes to display the PDF icon for PDF files in our SharePoint environment. Here is how we can add PDF icon in SharePoint 2010: Download an appropriate icon for pdf document type. you can download…

Powered by Blogger.