Webparts

Access Fileserver Data via SharePoint

**Update: ** The Webpart is not (yet) working as expected. Ajax only works for postbacks. The initial load will take longer, if you have many directories. I am working on this… **Update2: ** Almost done! Ajax is working fine. Ajax is registered, so you don’t need to modify the web.config yourself. Todo: Performance. Hang on just a little more. **Update3: ** Done. I have worked on my Webpart. It will now be faster and it is working 🙂

Updated WikiWebpart + Tool to install it

I updated my WikiWebpart. You can now download it as a SharePoint Solution. Steps to install the solution: Install the solution via “stsadm -o addsolution -filename RH.WikiWebpart.wsp” Go to your "Central Administration > Operations" and deploy the solution 1. * * Active the Feature for your Sitecollection Go to “Site Actions > Site Settings > Site Collection Administration > Site collection features” and active the feature ##### Add the Webpart to your Wiki library

Display all my alerts

The "old" SharePoint Server 2003 offered the ability to display all alerts from a user on his/her MySite. MOSS and SharePoint 2010 lacks this functionality. So I wrote a Webpart, which will display all my alerts. Of course is multilingual. Currently there is English, German and Spanish language support included. And it will work on Windows SharePoint Services V3 as well ass SharePoint Foundation. You don’t need the Office Server / SharePoint Server 2010 for it 🙂

Updated Wiki Webpart

Please use my custom field type. It is more flexible –> http://www.hezser.de I updated my Wiki Webpart. For all of you who don’t know what it does: The normal Wiki Edit Form misses the ability to upload pictures. My Webpart, which has to be included to the EditForm.aspx, allows you to upload a picture. It also creates a link in your Wiki post, which displays the uploaded image. This release of the Webpart is multi lingual.

Display a single listitem

You can display multiple list items with SharePoint and SharePoint Designer quite easy. But how do you display a single listitem? I worte a Webpart, which does this. If there are more than one listitem, you can page through them. And if you like, you can pass an itemid via a Webpart connection. In the Webpart properties you can select the list/library. If you like, you can specify a view other than the default view.

Ajax Webpart displays Webservice data

In this post I want to show how to create an Ajax Webpart, which receives its data from a Webservice – and until the data arrived – shows a status bar. As base for the Webpart, I took the one from Mark Collins and his great article http://sharethispoint.com/archive/2006/11/15/Build-web-parts-with-ajax.aspx. The approach is to render the Webpart with only a , and let the client – after it finishes querying the Webservice – fill the data into the previously created.

Webpart Development

Visual Studio Extensions If you want to write your own Webpart, you can start from scratch with a Class Library, or use the templates from http://www.microsoft.com/downloads/details.aspx?FamilyID=19f21e5e-b715-4f0c-b959-8c6dcbdc1057&DisplayLang=en The downside of this VS templates is, that they can only be used on a computer, which has SharePoint installed, and you cannot open a project created with the VS templates with a VS on which the templates are not installed. Server side controls Ishai Sagi wrote a great article about Webpart development.

Extend the simple Webpart

Now that we know how to create a simple Webpart, we want to add more functionality to it. Let us start with some Controls. Declare a Control as class variable Create it in CreateChildControls Modify the Control in OnPreRender Render the Control with its content Declare a Control public class simpleWebpart:WebPart { private HtmlGenericControl _MyDiv; CreateChildControls This method creates the control. After the creation, we will be able to access the control from elsewhere, to modify its properties or its content.

Deploy and Debug a Webpart to your SharePoint Server

To deploy a Webpart to a SharePoint Installation, complete the 3 steps beneath: Copy the dll from your Webpart to the bin folder of a webapplication Register the dll in the web.config as safe Add the Webpart to the Webpartgallery of a sitecollection Debug the Webpart Copy the dll from your Webpart to the bin folder of a webapplication Copy your dll to the bin folder of your IIS virtual server directory.

Create a simple Webpart HOWTO

In this blog post, I want to show you how to create a simple Webpart. All you need is a Visual Studio 2005 (e.g. the express version) and of course SharePoint. Start your VS and create a new “Class Library” Add a reference to the Microsoft.SharePoint.dll. We will create a SharePoint Webpart, to be able to add Properties. To display some text, override the render method. You have to create a reference to the Microsoft.

Wiki mit Bildern Update

Falls bei der Benutzung des Webparts ein Fehler wie: Fehler bei der Anforderung des Berechtigungstyps Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. auftritt, muss der Trustlevel in der web.config auf Full gesetzt werden. Zum vollständigen Beitrag: http://www.hezser.de Update 23. Apr 2008: Ich habe eine neue Version bereitgestellt.