SharePoint Development in Visual Studio 2010 Examples

by Andy Feb 11 2010

Visual Studio 2010 code samples to demonstrate SharePoint 2010 development projects, tools, and techniques. Each sample is available in both Visual Basic and C#. These can be downloaded from here.

SharePoint 2007 Sequential Workflow
Demonstrates how to create a basic sequential workflow template that associates a task in the SharePoint Tasks list with a document in a document library.

SharePoint 2010 Sequential Workflow
Demonstrates how to create a basic sequential workflow template that associates a task in the SharePoint Tasks list with a document in a document library.
More...

Tags: ,

Visual Studio 2010 | SharePoint 2010

SharePoint 2010 Developer Dashboard (Activation Feature)

by Andy Feb 08 2010

SharePoint 2010 comes with a great new in built tool called the Developer Dashboard (see here for more information), The Dashboard is disabled by default.  The Developer Dashboard is activated by either the STSADM command or using a PowerShell Script.  The Developer Dashboard has 3 different modes.   The first mode is the default setting which is offOn mode displays developer dashboard for every page render and finally, OnDemand mode enables Developer Dashboard but it’s not visible until a user activates it by selecting the Developer Dashboard icon.

The following STSAdm command shows 2 ways of enabling the Developer Dashboard:

stsadm -o setproperty -pn developer-dashboard -pv on or stsadm -o setproperty -pn developer-dashboard -pv ondemand

Or using PowerShell:

$srv=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
$addsetting=$srv.DeveloperDashboardSettings
$addsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand
$addsetting.Update()

 

The rest of this article covers creating a standard SharePoint feature that allows the dashboard to be switched on or off using the Central Administration Console with the click of a button. More...

Tags: ,

SharePoint 2010 | Visual Studio 2010

Minimal Master Page for SharePoint 2010

by Andy Jan 28 2010

Just like Heather Solomon great work on the minimal master page for SharePoint 2007, there is a now a template available over on Code.msdn.microsoft.com for SharePoint 2010, be sure to check out Heather's work and also Kyle's Sharepoint Karate as the same principles apply. These templates are a great starting point for anyone looking to customize the the look and feel of there sites.

Download here: http://code.msdn.microsoft.com/odcSP14StarterMaster

Tags: , , ,

SharePoint 2010

List of SharePoint 2010 Powershell Commands

by Andy Jan 09 2010

With STSADM no doubt going the way of the DODO in the not too distant future, SharePoint 2010 comes with a host of Powershell commands; these can be viewed by opening the "SharePoint 2010 Management Shell" link under the "SharePoint 2010 Products" on the start menu. This opens a command window (Powershell) with all the SharePoint libraries, etc loaded. You can output the list of commands by entering the following command:

gcm -PSSnapin "Microsoft.Sharepoint.PowerShell" | format-table name

Note: gcm is the abbreviated command for Get-Command

The list below shows the output: More...

Tags: ,

SharePoint 2010

SharePoint Tools in Visual Studio 2010

by Andy Jan 05 2010

Visual Studio 2010 thankfully will deilver very close integration with Sharepoint 2010 (and can be used with 2007 as well.), I've covered some of what I've found most useful so far, firstly there are a lot of out of the box Sharepoint project templates to choose from:

More...

Tags: , ,

Visual Studio 2010 | SharePoint 2010

SharePoint 2010 Sandbox Solutions

by Andy Dec 16 2009

If you have been following SharePoint 2010, you will have no doubt seen the mention of the "Sandbox".  Essentially Sandbox solutions allow site collections users to upload and test there code, etc with out impacting on the main site. The sandbox runs outside the normal W3WP.exe process in there own process called SPUCWorkerProcess.exe. There are a lot of things that you cannot do when deploying to a Sandbox, below is a reference of what Sandbox solutions do and do not support.
 
Sandboxed solutions use the Microsoft.SharePoint namespace and below is a list of the elements, etc supported: More...

Tags: ,

SharePoint 2010

SharePoint 2010 Ribbon Reference

by Andy Dec 10 2009

SharePoint 2010 introduces a Ribbon tool bar as seen in Office 2007, this toolbar is generated from XML and requires specific parameters to place custom, tabs, groups and buttons. I'm planning of covering more on this shortly, but thought I'd post up the reference to the default locations of the Ribbon Control, please see this post on how to go about finding the right location. [These are from the Beta 2 release so they are subject to change.]

More...

Tags:

SharePoint Chrome

SharePoint 2010 Ribbon, Finding the right Location.

by Andy Dec 07 2009

The ribbon is created from several sections, TAB's, Groups and then the Controls. Controls are added to the ribbon using a location property in the schema, this being :  Ribbon.[Tab].[Group].Controls._children.  

Once you know the path to the ribbon section you want to add too or remove from, its pretty straight forward. The out of the box ribbons are defined in an XML file called CMDUI.xml, located in the SharePoint root ( C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML\ ). If you search through this XML you will find references to the various Tabs and groups. More...

Tags: ,

SharePoint 2010

Sharepoint 2010 Updated CSSRegistration Control

by Andy Dec 02 2009

If you have ever tried to brand a SharePoint site, I'm sure you will have come across the CSSRegistration control in the master page files and mos tlikely have run into some of its issues. A quick recap on the main gotcha (as work arounds for SharePoint 2007 have been covered in some great articles. Heather Solomon , Clever Work Arounds, etc ).

Essentially if you try to register your custom CSS like the example below in the Master page:


<head runat="server">
[snip]
<!--Styles used for positioning, font and spacing definitions-->
<SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/Custom/Custom.css%>" runat="server"/>
<SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/Custom/Custom2.css%>" runat="server"/>
[snip]
</head>

More...

Tags: , ,

SharePoint 2010

Sharepoint Webparts Icon Customization

by Andy Nov 20 2009

I've come across quite a lot of posts of the last few months asking about the Icon relating to a web part and whether anything can be done with it, so I’ve put a few CSS pointers below that I’ve used in the past for site chrome customization. Firstly you need to add an icon in the normal way to the web part using its properties. More...

Tags:

SharePoint Chrome

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen