The Sharepoint Delegate Control

Having just gone through with Dave on using an alternative navigation in a master page I thought it useful to post on the Sharepoint Delegate Control.

Andrew Connell has a great explaination on this in his Web Content Book & of course there is some information in the SDK.

The delegate control is a means to inject custom user controls, or server controls into page, or to override the default Microsoft controls. They are identified in pages (master pages, content, page layout or application pages) by the <SharePoint:DelegateControl/> tag.

As an example, <SharePoint:DelegateControl ControlId="MyControl></SharePoint:DelegateControl>

Each tag has a unique ID, specified using the ControlId attribute. A developer can produce a control, wrap it into a feature then in the manifest specify the ControlId in which to place their control. In addition to the ID, the manifest will specify a sequence number. This is an important attribute as explained below.

The sequence number allows a control to override another control - the lowest sequence number will always win. Take for example the following diagram....

In this case 3 features have been activated - Feature A, Feature B and Feature C. All are placing controls into MyControl. Because Feature B has the lowest sequence number, it wil be rendered onto the page at runtime, irrespective of when it was activated. If FEATURE B is deactivated, then FEATURE C will win.

If no controls are placed into the DelegateControl, then at runtime the placeholder will be blank.

Examples of use are the search control. A developer can write a custom search control. the feature will sepcify a ControlId of SmallSearchInputBox and a sequence of 10. Once activated, this will overwrite the existign search controls.

Of course, the beaty of this is that the master page does not have to be modified and the feature can be retracted at any time.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

BT embrace social media technology

Despite what seemed like quite an arduous internal justification process it seems like BT are starting to embrace social media or Web2 technology.

The case study on Richard Dennison's blog highlights the lessons learned with the adoption which include:

  • Focus on the value social media tools can bring rather than the risks
  • Start small, and let the users dictate the direction & speed of adoption
  • Engage policy makers as early as possible, and emphasise that the development is an evolution in web usage
  • Set realistic achievements about what can be achieved

I like these fundamental basics - we often try to check our client's expectations.  Rather than trying to embark on the goliath of all projects look for quick wins and build iteratively (is that a word?).  That way users don't get overloaded with functionality (and therefore switch off) rather they embrace the benefits the system provides and then left asking for more!

Anyway its good to see a case study of how social media is being adopted.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Important Sharepoint Updates

A massive Infrastructure Update for the following has been released:Microsoft Office Servers (KB951297):
  • Microsoft Office SharePoint Server 2007
  • Microsoft Office Project Server 2007
  • Microsoft Search Server 2008
  • Microsoft Search Server 2008 Express
Windows SharePoint Services 3.0 (KB951695):
  • Windows SharePoint Services 3.0
Microsoft Office Project 2007 (KB951547):
  • Microsoft Office Project Professional 2007

Get over to the Microsoft SharePoint Team Blog site to read all about it....
http://blogs.msdn.com/sharepoint/archive/2008/07/15/announcing-availability-of-infrastructure-updates.aspx

For a quick overview of the updates for SharePoint check this site out...
http://blogs.technet.com/tothesharepoint/archive/2008/07/14/3088801.aspx

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

 

Dilbert of the day