Chaks' Corner

SharePoint and other stuffs

21. February 2009 04:28
by Chakkaradeep
0 Comments

Simple way to use LINQ with SharePoint ItemCollections

21. February 2009 04:28 by Chakkaradeep | 0 Comments

Here is a simple way to make use of LINQ with SharePoint item collections, for example, with List Items SPListItemCollection listPages = pagesList.Items;var latestPages = listPages.Cast<SPListItem>().Where(p => p.Name != defaultPageName); And this becomes really cool if you use with Dynam... [More]

13. February 2009 05:05
by Chakkaradeep
0 Comments

Using query parameters in SharePoint page layouts

13. February 2009 05:05 by Chakkaradeep | 0 Comments

I had a strange case today where SharePoint was throwing this error No item exists at http://mytestsite?id=4.  It may have been deleted or renamed by another user. I use pagination in one of my page layouts and I got the above error when I select a page in the preview display mode when I ... [More]