SPQuery Returns All of the Items

During a development project, calling SPQuery returned all items from list! Looks like it just ignored the filters we applied. Fix: This above code returns all items in the list, but if you remove the <Query> tag all works fine: “<Query><Where><Eq><FieldRef Name=”Title” /><Value Type=”Text”>Test</Value></Eq></Where></Query>“;  Remember, Query XML is case sensitive! So <Where>…

Read more

Change PDF Icon in SharePoint

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 the PDF document type. You…

Read more