tags:

views:

22

answers:

0

To setup connection points for web part connections in ASP.NET you use the [ConnectionProvder] or [ConnectionConsumer] attributes.

E.g. from http://www.tonstegeman.com/Blog/Lists/Posts/Post.aspx?ID=37

[ConnectionProvider("Region")]
public ITransformableFilterValues SetConnection()
{
    return this;
}

(This example happens to be for SharePoint but the ConnectionProviderAttribute is part of System.Web.UI.WebControls.WebParts so applies to normal ASP.NET pages)

However this means that you can't dynamically decide what connection points to offer.

Any way to add attributes dynamically (I think not) or is there an alternative method of registering connection points?