Tuesday, April 14, 2009
Ronua VS 2010 + ASP.NET MVC 1.0 Codecamp is comming this spring at the beginning of May. One week of coding side by side
Monday, March 9, 2009
Enabling Silverlight 2 in SharePoint / The easiest sample
Silverlight promises to give SharePoint exactly what it doesn’t have: glam :).
SharePoint is a very powerful tool, but it comes a time in the life of such a powerful tool when it needs a little dosage of eye-candy design. Right now, that can be very easily achieved with Silverlight.
As the two are siblings of the same technology (plain old ASP .NET
) they work very nicely together.
But first of all, some SharePoint configuration element are needed. Configure SharePoint to run Silverlight
The needed configuration elements are:
1. Silverlight 2 plug-in.
2. .NET 3.5 framework installed on the server.
3. Service Pack 1 installed for WSS 3.0/MOSS 2007.
4. System.Web.Silverlight.dll added in the Global Assembly Cache (GAC).
5. New Web.config elements in the web.config of the Web application you are planning to run Silverlight on.
6. The .xap extension registered as a MIME type (application/x-silverlight-app) in IIS.
7. [Development requirements: Silverlight Tools for Visual Studio 2008 SP1, Install Microsoft Expression Blend 2 and Microsoft Expression Blend 2 Service Pack 1] Easiest test - Silverlight on SharePoint
To test if Silverlight actually works, open a site in the web application that you configured to run Silverlight controls (point 5 above).
Silverlight can easily be added in a Content Editor Web Part. For that, you will need, first of all, a Silverlight control to add. You can find a simple Silverlight control on the Internet, or here.
SharePoint is a very powerful tool, but it comes a time in the life of such a powerful tool when it needs a little dosage of eye-candy design. Right now, that can be very easily achieved with Silverlight.
As the two are siblings of the same technology (plain old ASP .NET
But first of all, some SharePoint configuration element are needed. Configure SharePoint to run Silverlight
The needed configuration elements are:
1. Silverlight 2 plug-in.
2. .NET 3.5 framework installed on the server.
3. Service Pack 1 installed for WSS 3.0/MOSS 2007.
4. System.Web.Silverlight.dll added in the Global Assembly Cache (GAC).
5. New Web.config elements in the web.config of the Web application you are planning to run Silverlight on.
6. The .xap extension registered as a MIME type (application/x-silverlight-app) in IIS.
7. [Development requirements: Silverlight Tools for Visual Studio 2008 SP1, Install Microsoft Expression Blend 2 and Microsoft Expression Blend 2 Service Pack 1] Easiest test - Silverlight on SharePoint
To test if Silverlight actually works, open a site in the web application that you configured to run Silverlight controls (point 5 above).
Silverlight can easily be added in a Content Editor Web Part. For that, you will need, first of all, a Silverlight control to add. You can find a simple Silverlight control on the Internet, or here.
1. Create a document library in the site you just opened. I named mine XAPS.
2. Navigate to this library and upload the Silverlight control.
3. On the site Home page (for example) add a new Content Editor Web Part.
4. Open the Edit panel and select Source Editor.
5. In the content text box enter the following:
<object width=”100%” height=”200″
data=”data:application/x-silverlight-2″
type=”application/x-silverlight-2″ >
<param name=”source” value=”/xaps/SilverlightControl1.xap”/>
</object>
6. Click Save and then OK and the Web Part should load the following:
A very good place to start with Silverlight and SharePoint is CodePlex’s Silverlight Blueprint for SharePoint.



