SharePoint Development Blog

Nick Boumans
View my LinkedIn Profile Follow me on Twitter View my Profile on FaceBook View my projects on CodePlex View my presentations on SlideShare



Recent posts

Tags

Categories

Navigation

Pages

Archive

Blogroll

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

Visited Image Hyperlink in HTML has olive color border in some browsers

In a SharePoint page I noticed the following: 

If you use an image as an hyperlink it could be that your browsers shows an olive (purple) color border around it after it is visited. You can solve it by defining the attribute border="0" in the image tag:

<A HREF="http://www.google.com">Google link<IMG SRC="google.png" ALIGN="BOTTOM" BORDER="0" WIDTH="200" HEIGHT="50"></A>
Posted: Feb 21 2010, 18:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: SharePoint General

Adding and Deploying Solutions with PowerShell in SharePoint 2010

Visual Studio 2010 makes it really easy to add and deploy solutions when you are developing (the F5 experience), but you may eventually want to deploy those solution packages elsewhere then on your development machine. We can still use the stsadm tool, but that is effectively considered deprecated now in favor of PowerShell.

To get started with PowerShell, run the SharePoint 2010 Management Console located in your Microsoft SharePoint 2010 Products folder on your start menu. This automatically loads the Microsoft.SharePoint.PowerShell snappin so that we can execute SharePoint commands.

 


[code:xml]


Add-SPSolution c:\codefolder\SharePointSolution.wsp
Install-SPSolution –Identity SharePointSolution.wsp –WebApplication http://yoursharepointurl -GACDeployment
Update-SPSolution –Identity SharePointSolution.wsp –LiteralPath  c:\codefolder\SharePointSolution.wsp –GACDeployment
Uninstall-SPSolution –Identity SharePointSolution.wsp –WebApplication http://yoursharepointurl
Remove-SPSolution –Identity SharePointSolution.wsp

Also cool is getting your SharePoint version by using Powershell

function global:Get-SPFarm
{
       return [Microsoft.SharePoint.Administration.SPFarm]::Local
}
$farm = Get-SPFarm
$farm.BuildVersion

The result looks like

Major  Minor  Build  Revision
-----  -----  -----  --------
14     0      4536   1000
Posted: Dec 30 2009, 12:32 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Developing SharePoint Solutions using Visual Studio 2010

On MSDN you can read about SharePoint 2010 Development walk-throughs: http://msdn.microsoft.com/en-us/library/ee231593%28VS.100%29.aspx

Visual Studio 2010 beta 2 SharePoint Development Samples: http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=SharePointDev2010&ReleaseId=3346

 

Posted: Dec 24 2009, 13:54 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Sharepoint 2010 Beta Developer Training Kit

"The SharePoint 2010 Beta Developer Training Kit provides developers with deep guidance on how to develop for SharePoint 2010. Through PowerPoint decks, Hands-On Labs, Source Code, and Instructor-Led Videos, the developer kit walks you through an array of important developer topics--including Developer Roadmap, Visual Studio tooling, Workflow, Business Connectivity Services, and much, much more."
  • Supported Operating Systems: Windows 7; Windows Server 2008 R2

To use the guidance properly, you'll need to have SharePoint Server 2010 Beta and Visual Studio 2010 Beta installed on a Windows operating system. Supported Operating Systems: Windows Server 2008 R2 (64 bit) and Windows 7 (64 bit).

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=bfd1603b-7550-4b8e-be85-4215a5069b90

Posted: Dec 22 2009, 14:57 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Loading a custom menu build in Office into SharePoint WebPart

In Powerpoint and Word 2007 (and Word 2010) we can choose to save as: Single File Web Page (*.mht; *.mhtml). In this way we can make a nice graphical menu structure (using e.g. shapes and hyperlinks).

So I made a simple organogram and added hyperlinks to to shapes. This hyperlinks point to sharepoint pages. It looks like:

 

- Save your menu (or clickable presentation) as Single File Web Page (Not in PowerPoint 2010, here you have to choose Word).
- Upload the .mht file to a document library
- Add a Page Viewer WebPart to a Page
- Point the Page Viewer WebPart URL to the .mht file of that doc lib

Works in SharePoint 2007 (Office 2007) and SharePoint 2010 (Office 2010, however the optiion to save as single file web page has been removed in PowerPoint 2010 Beta).

Posted: Dec 20 2009, 16:50 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Complete Single Server SharePoint 2010 installation using local accounts

In SharePoint 2007 we could choose a single server installation (which installed SQL Server express) or a Farm installation (which uses SQL non express). It was possible to use local accounts for the Farm Installation too.

In SharePoint 2010 we can’t use local accounts for the Farm Installation. However if you choose for single server installation you get SQL Server Express 2008. To Fix this on a development environment I came to the blogpost of Neil 'The Doc' Hodgkinson: http://sharepoint.microsoft.com/blogs/fromthefield/Lists/Posts/Post.aspx?List=0ce77946%2D1e45%2D4b43%2D8c74%2D21963e64d4e1&ID=112&Source=http%3A%2F%2Fsharepoint%2Emicrosoft%2Ecom%2Fblogs%2Ffromthefield%2FLists%2FPosts%2FAllPosts%2Easpx

This method worked for me on the public beta. The steps I followed:

  1. Choosed the farm installation method
  2. Didn’t run the configuration wizard directly after installation
  3. Installed SQL Server 2008 SP1 Fix: KB970315 x64
  4. Restarted IIS (If not I got problems in the following steps)
  5. Start Menu >> Microsoft SharePoint 2010 Products >> SharePoint 2010 Management Shell
  6. You get a SharePoint 2010 Management Shell (PS C:\Users\Username)
  7. Type: New-SPConfigurationDatabase
  8. DatabaseName: SharePoint_2010_ConfigDB
  9. DatabaseServer: e.g. DEV (It’s your computername)
  10. Now your prompted for the Farm Credentials. Please insert them
  11. The last step in insert a Passphrase: you can choose some of your own
  12. After this completes you will find in SQL a new configuration database and an admin content database
  13. Run the SharePoint Products Configuration Wizard
  14. Choose: Do not disconnect form this server farm (it takes your config database and database server automatically)
  15. Follow the other steps in the wizard

Note: For development environments only. Don't use this at a production environement. Set your password expiration to 0 days (never).

Posted: Dec 17 2009, 20:38 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Create remote desktop shortcut on your desktop

Do you also use a lot of remote desktop connections for your different (SharePoint) servers? A shortcut to your remote desktop computers can make using them easier.

  1. Right click on your desktop and select New -> Shortcut
  2. Enter: mstsc.exe /v:yourserver /w:800 /h:600

The command parameters are:

  • mstsc.exe – this is the name of the Remote Desktop application, and is required for the shortcut to work properly. 
  • yourserver – this is the name or IP address of the computer you want to connect to.
  • 800 – this is the resolution width for the computer that you’re connecting to.
  • 600 – this is the resolution height for the computer that you’re connecting to.

Note: the /w and /h parameters are NOT required

Posted: Dec 08 2009, 07:00 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: OS

Microsoft SharePoint Connections 2010 Amsterdam

I will attend the Microsoft SharePoint Connections in Amsterdam at 18-19 January 2010: 

"Missed a session at the SharePoint Conference in Las Vegas?, Couldn't make it at all? Block your agenda for 18th and 19th of January for the Microsoft SharePoint Connections 2010, in Amsterdam RAI!

The conference in Amsterdam contains all highlights presented at the international SharePoint Conference in Las Vegas. The SharePoint Connections conference also offers networking opportunities to engage with SharePoint partners, experts, speakers and partners who are exhibiting. And don't forget the SharePint on Monday evening. A tradition in the SharePoint world. Work with SharePoint during the day, talk about SharePoint while drinking a beer at night.

The SharePoint event of the year highlights over 40 sessions for IT-Pro, Developers and end-users. Sessions will be delivered by SharePoint Experts from Europe and the USA. If you want to get even more details after the conference register for the special Post Conference where you well get very detailed information in the IT Pro and Developer workshops."

For more info and tickets: http://www.devconnections.com/shows/NED2010SP/default.asp?s=149

 

Posted: Dec 05 2009, 08:55 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Filed under: 2010 | Events | Twenty-Ten

Adding a Ribbon to SharePoint 2010

If you take a look to HOL10 - Developing SharePoint 2010 User Interface Ribbon and Dialog Customizations: http://www.microsoft.com/downloads/details.aspx?FamilyID=c010fc68-b47f-4db6-b8a8-ad4ba33a35c5&displaylang=en you will notice that this Hands on Lab will not work for the public beta. If you want to follow this lab and make it work, please update your elements.xml to the next code:

<?xml version="1.0" encoding="utf-8"?>
<!-- also take a look at: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML\CMDUI.XML -->
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
    Id="Hello_world"
    RegistrationType="List"
    RegistrationId="101"
    Location="CommandUI.Ribbon"
    Sequence="5">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Documents.Manage.Controls._children">         
              <Button
            Id="Ribbon.Documents.New.DemoHelloWorldButton"
            Alt="Hello World Ribbon Button"
            Sequence="5"
            Command="Demo_HelloWorld"          
            Image32by32="_layouts/images/YourProject/YourImage.jpg"
            LabelText="Hello World Demo"
            TemplateAlias="o1"/>           
        </CommandUIDefinition>
        </CommandUIDefinitions>
      <CommandUIHandlers>       
        <CommandUIHandler
        Command="Demo_HelloWorld"
        CommandAction="javascript:alert('Hello World!');" />       
      </CommandUIHandlers>      
      </CommandUIExtension>
  </CustomAction>
</Elements>


[/code]
 

You can view this Ribbon if you navigate to the Documents Folder. If you want to make a Ribbon visible on other places (e.g. page which actually is a WikiPageTab) take a look to this file:  C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML\CMDUI.XML in your SharePoint root. In the CMDUI.XML you can find the definitons of the default Ribbons which could be helpfull to extend it with your own. E.g. you can find group ID's and sequences of the Ribbons.

If you want to extend the SiteActions menu you can take a look at the next elements.xml code

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="UserInterfaceCustomActions.SiteActionsToolbar"
    GroupId="SiteActions"
    Location="Microsoft.SharePoint.StandardMenu"
    Sequence="1000"
    Title="MY SITE ACTIONS BUTTON">
    <UrlAction Url="javascript:alert('Hello World!');"/>
  </CustomAction>


</Elements>

 

Posted: Nov 28 2009, 10:43 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Add an assembly to your Visual Studio 2010 SharePoint Package

If you are familiar with WSP-builder for development with SharePoint 2007, the way of adding assemblies to your SharePoint 2010 project is a little different. You always start with an empty SharePoint project. From here you can add other items. In WSP-builder you had the bin and GAC folder in Visual Studio.

To add an assembly to your Visual Studio 2010 SharePoint Package (SharePoint 2010) 

  1. Open you Package.package file.
  2. On the bottom of the window you can choose: Design | Advanced | Manifest
  3. Choose Advanced

 

SP2010 Add Assembly

You can choose for an excisting assembly or the output assembly of your project.

You can deploy the assembly to the GAC (C:\Windows\Assembly - The Global Assembly Cache, full trusted) or the WebApplication (actually the Bin Folder of your WebApplication in your InetPub folder of your WebServer).

 

Posted: Nov 28 2009, 10:30 by Nick Boumans | Comments (0) RSS comment feed |
  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5