Posts Tagged SharePoint

Adding Configurable Properties to a SharePoint Web Part’s Tool Pane

In a previous post, we developed a simple web part to add two numbers together and display the result.  It is a great introduction to web parts in the SharePoint world, but it is lacking any end user configuration.  So, let’s go through how to add a bit of configuration to this web part.  We [...]

,

No Comments

How To Create a Basic SharePoint Web Part

A large part of SharePoint’s power comes from the fact that the interface is completely pluggable. Users can add web parts to pages of their choice in order to add functionality and features to a SharePoint site on demand. So, an obvious direction any SharePoint developer would take is to learn how to develop web [...]

,

1 Comment

Executing Code in Assemblies with SharePoint CustomActions

In my previous post, I discussed the basics of using a CustomAction to enhance the functionality of a content type. We used a CustomAction to redirect and pass some parameters to another page. This functionality is great, but what if you don’t want the user to go to another page for your custom logic to [...]

,

2 Comments

CustomAction Basics in SharePoint

CustomActions allow you to provide an easy way for an end user to perform some sort of action on or with a specific list item that is not available in a standard SharePoint installation.
Let’s go through a simple demo of using a CustomAction. In this demo, we will create a CustomAction which will redirect to [...]

,

No Comments

Feature Receiver Basics

As you begin developing more and more complex features to be deployed to SharePoint, you will most likely come across the need to perform some additional actions when your feature is installed and activated as well as extra clean-up when your feature is deactivated and uninstalled.  In come Feature Receivers to do just this.  Feature [...]

,

No Comments

Using Local Config Files with WSPBuilder

Using WSPBuilder is rather straight-forward and for most features the default configuration settings work fine. But what happens when you want to include custom CAS policies or change the default folder names? Fortunately, WSPBuilder has an extremely robust set of configuration switches to handle these cases.
If you look in the folder you installed WSPBuilder into, [...]

,

No Comments

How To Properly Enumerate User Profiles using the SharePoint User Profile Web Service

Recently I had a need to pull all user profiles out of our SharePoint farm in order to push them into a middle-tier database that my team was building.  Since this would be run as a scheduled task on a machine that would not have SharePoint installed on it, I would have to use the [...]

, ,

1 Comment

WSPBuilder Folder Structure

WSPBuilder makes the process of building WSP files extremely simple as illustrated in a previous post.  WSPBuilder supports many features including deploying files to the 12 hive as well as deploying assemblies to the GAC or the web application’s bin folder.  To do this, you must structure your project files in a specific way.  Take [...]

,

1 Comment

Intro to WSPBuilder

WSPBuilder is a tool for building web solution (WSP) files to deploy out to a SharePoint farm.  It is free, open source, and available on CodePlex here: http://www.codeplex.com/wspbuilder.  It is a tool that, in my opinion, every SharePoint developer should be using.
So what is a WSP file?  WSP files are web solution files.  Essentially, they [...]

,

3 Comments

SPWeb.EnsureUser

Suppose you need to perform some actions on a SharePoint user such as role assignment, but you are unsure if the user exists within the site you are currently working with.  One solution, which I have always used, is to check for the existence of the user within the site and if they do not [...]

No Comments