C#


My New Book: SharePoint 2013 WCM Advanced Cookbook [Packt]

My new book, SharePoint 2013 WCM Advanced Cookbook, was published yesterday. It’s available on Amazon.  You can also download a sample chapter from the Packt website. Amazon: http://tinyurl.com/lutktay Sample Chapter: http://tinyurl.com/mqup5lb What you will learn from this book Manage SharePoint branding with device channels and design packages Customize the user experience with delegate controls Modify user input with InfoPath […]

[SharePoint 2013] Adding Links to the Suite Bar (Newsfeed, SkyDrive, Sites) By Overriding the SuiteLinksDelegate Delegate Control

SharePoint 2013 features a new set of links called the Suite Bar Links that are displayed in the top right corner of every SharePoint page. By default these links include “Newsfeed”, “SkyDrive”, and “Sites”. When first seeing this links my first thought was “how do I change them?”. In exploring the master page, we can […]

[PowerShell] How To Debug a Custom C# PowerShell Cmdlet

In my previous couple of posts I have been discussing how to write a custom PowerShell Cmdlet in C# ([PowerShell] Write a Custom PowerShell Cmdlet in C# and [PowerShell] Using Common Verbs for Custom PowerShell Cmdlets in C#). When developing custom PowerShell Cmdlets in C# you will probably come across the need to debug them […]

[PowerShell] Using Common Verbs for Custom PowerShell Cmdlets in C#

In my previous post, [PowerShell] Write a Custom PowerShell Cmdlet in C#, I mentioned that the commond verbs built-in to PowerShell should be used whenever possible. Here is a listing of all of the common PowerShell verbs available in PowerShell 2.0: VerbsCommon Add Clear Close Copy Enter Exit Find Format Get Hide Join Lock Move […]

[PowerShell] Write a Custom PowerShell Cmdlet in C#

Particularly with SharePoint 2010, I have become a huge fan of Microsoft PowerShell. In addition to writing complex PowerShell scripts (.ps1 files), I have found it very useful to write my own C#-based PowerShell Cmdlets to use in my scripts. This basic tutorial illustrates how to create a basic PowerShell Cmdlet with a couple of […]

[SharePoint 2010 / 2013] Display Messages Using the SharePoint Status Bar (Status Setter)

SharePoint 2010 and 2013 have a very useful control for displaying status messages, the SPPageStatusSetter. The SPPageStatusSetter can be used to provide the end user messages in the same fashion that the SharePoint UI does to provide a more cohesive experience. The status bar comes in four flavors: Blue – For informational type messages Green […]

[SharePoint 2007/2010/2013] Identify Version of SharePoint Programmatically

With SharePoint 2013, Microsoft has introduced a small monkey wrench in where solution files get deployed when mapped to the LAYOUTS (/_layouts) folder. Files in SharePoint 2007 and 2010 would simply be deployed under the /_layouts folder. With SharePoint 2013, however, these same files are now deployed under /_layouts/15. Not really a big deal if […]

[SharePoint 2010] Specifying Which Server a Custom Timer Job Will Run On

By default timer jobs in SharePoint are scheduled for all servers in a SharePoint farm and whichever server picks up the job first is the one that runs it. There may be times when creating a custom timer job for SharePoint 2010 that you want to specify the server in the farm that the timer […]