2007-09-04

Ajax for SharePoint 2007 - How to get started?

It was bound to happen sooner or later - I had to write an Ajax Web Part to be used in a SharePoint 2007 sollution. Oohh - Scary! - I thought at first... But thanx to Google and all the great MVPs and other blogg writers - I made a home run in less than 1 hour.

Follow these simple steps (in your development image):
  1. Download and install ASP.NET 2.0 Ajax Extensions 1.0. Click here
  2. Install and activate the Ajax.config feature written by Scott Hillier (at CodePlex). Click here. It does (almost) everything what Mike Ammerlaan has described so well in his blog. You should read Ammerlaan's article to understand what Mr. Hillier's feature does.
  3. Add a ScriptManager into your SharePoint MasterPage (See Ammerlaan's article).
  4. Find, download, install and activate a demo Ajax web part, e.g Adam Buenz's List Rotator Web part
  5. Then the fun part: Write your own! E.g. combine the simple web part in Ammerlaan's article with an Ajax Timer (see this article - make sure you add the Timer to the UpdatePanel's Controls list) and you can write your own list rotator, delay loading aof data - e.g from a slow web service, or ...

Go, go go! Time is money!

2 comments:

Sam said...

Well, good to hear that it should not be too difficult. But "go, go, go" hey, let's not panic just yet ;-)

mike said...

What do you mean exactly by the UpdatePanel's Control list? How do I access it?