I am working on a project at the moment where we are building templated data-bound controls (TDBC) for ASP.NET.
The problem is it appears that nobody has really worked out the definitive pattern for how to do this - there are 3 or 4 different 'styles'.
Not only that but many of the controls are giving the "cannot use databinding when control is not on a page" error at design time, so obviously something is being done wrong in those controls.
Here is an example from MSDN.
The problem is I have come across many similar but different examples all over the web.
And if you look in Reflector at how people (inc MS) have implemented their TDBC you see different approaches again.
If you know of any article, example code, or library that you think shows the best practice for building TDBC please let me know.
Thanks