SharePoint 2010 101 Code Samples

Found the below code samples in the MSDN SharePoint Developer Center.

Each code sample is part of the SharePoint 2010 101 code samples project. These samples are provided so that you can incorporate them directly in your code. Each code sample consists of a standalone project created in Microsoft Visual Studio 2010.

Prevent Past booking and Limit Advance booking in SharePoint 2010 Calendar

I’m talking about the SharePoint 2010 calendar list validations in this post.

Well, what i mean by ‘Past booking’ is user should not be able to add an event in the past date/time and Limit Advance booking means user should not be able to add an event beyond a limited number of days (eg: 2 days)

Calendar > List Settings > Validation settings > Formula

The below formula will prevent the user from booking for the past date/time.

=[Start Time]>Created

If you don’t want the user to created an event beyond 2 days limit:

=[End Time]<(Created+2)

Now, what if i want to combine both the above validations!! Here it is:

=AND([Start Time]>Created,[End Time]<(Created+2))

With this above formula in place, user won’t be able to create an event in the past date/time neither will he be able to create an event beyond 2 days from the current date/time.

Few more reference links for list/column validation:

How to make PDF documents searchable in SharePoint 2010?

PDF documents are not searchable by default in SharePoint 2010. Yes, you might see PDF documents in search results. But those are searched based on the pdf document properties (filename, document title, document subject etc,.) and not searched with the “content” within the pdf document.

To make the pdf document content also searchable, you need to install PDF iFilter.

Here is an official MS support article on How to make PDF documents searchable:

If you are looking for a step-by-step guide:
Note: Don’t miss the end of the article which points you to an article on automating this process using powershell script.

If you want other options apart from Adobe iFilter Jie has written a great article with comparisons too:

SharePoint 2010 Capacity Planning in nutshell

Just came across this blog post which talks in very simple descriptive ways on SharePoint 2010 Capacity Planning:

Could be handy for SharePoint administrators.

SharePoint 2010 installation pre-requisites download

updated: 10 March, 2011

Microsoft .NET Framework 3.5

Microsoft .NET Framework 3.5 Service Pack 1

Windows Identity Foundation

Microsoft Chart Controls for Microsoft .NET Framework 3.5

Microsoft SharePoint Designer 2010 (64-bit)

Microsoft SharePoint Designer 2010 (32-bit)

SQL Server® 2008 R2 Reporting Services Add-in for Microsoft SharePoint® Technologies 2010

Microsoft SQL Server 2008 Reporting Services Add-in for Microsoft SharePoint Technologies

Note: This is for MOSS 2007 or WSS 3.0

Official SharePoint website

View the same site in other international Languages: