Fix for the CAML query with Where Clause that does not filter results.

By [)ia6l0 iii

When you retrieve the List Items with CAML using the SharePoint Object Model do not use the "Query" inside the Query TagsSPQuery

oQuery = new SPQuery();

//This is Wrong.

oQuery.Query = "<Query><OrderBy

//Do it like this.
oQuery.Query = ""<OrderBy>....."

Fix for the CAML query with Where Clause that does not filter results.  (1572 Views)