All posts tagged Windows SharePoint Services 3.0

Querying a SharePoint List with LINQ

I am continuously seeing the value in LINQ and I think with the upcoming changes in SharePoint 2010 I plan on making LINQ an even bigger part of my normal development practice.

First establish an SPList object of the list you would like to query data from.

SPList list = web.GetList("/Lists/ListUrl");

Next query the list; taking advantage of the filtering and sorting capabilities built into LINQ

var listItems = from SPListItem item in list.Items
                            orderby item.Title
                            select item;

And with a where query utilizing a custom field!

var listItems = from SPListItem item in list.Items
                            orderby item.Title
                            where ((DateTime)item["CustomExpirationField"]).DayOfYear >= DateTime.Now.DayOfYear
                            select item;

Now feel free to loop through your data and take care of business!

foreach (SPListItem item in listItems)
     // item.Title

Five SharePoint Technologies to Invest In

With SharePoint 2010 around the corner I bring you five SharePointe technologies to invest in. Not in any particular order…



What is Silverlight?

“Silverlight helps you create rich web applications that run on Mac OS, Windows, and Linux. Welcome to a new level of engaging, rich, safe, secure, and scalable cross-platform experience.”

In short Silverlight is the Microsoft competitor to Adobe Flash. Silverlight runs on the client side and is designed to communicate with backend systems via web services. It provides a rich experience with functionality such as playing videos, music, charting and rich web based user interfaces.

Why Should I Invest In It?

SharePoint 2010 is shipping with a new web part out of the box appropriately named the “Silverlight Web Part”. This web part will be a container or shim for any Silverlight applications that you would like to host within SharePoint. SharePoint 2010 also comes with a Client Object Model which will allow you to interface with the SharePoint objects using client side Silverlight code and avoid the need for building or using one of the out-of-the-box web services. This should greatly speed up development and allow developers to write rich interfaces, views and dashboards surfacing SharePoint data using custom Silverlight web parts. Continue reading →

10 Essential SharePoint Developer Tools

#10 XML Notepad 2007

Download Now

Why You Need It

  • Perfect for editing large XML files such as List Definitions, Site Definitions (onet.xml) and large XML feature files (Content Types, Site Columns, etc)
  • Great support for expanding / collapsing nodes
  • Good for testing XSL transformations

Continue reading →

Admin and End User Naming Conventions

SharePoint naming conventions, or any naming conventions for that matter, are great… but they are only good if they are followed and used consistently. This article is not designed to be a definitive list of what to do but more of a guide that will hopefully help you establish your own best practices within your organization. Continue reading →