So here is a project outline, I need to make a web application with its core components encapsulated in Web User Controls. The reason for this is that the company will be using MOSS extensively by early next year, and we want to use these components later on as web parts. I think these web user controls will need to be flexible in terms of the data source, theme/CSS. We might have a WCF service that will databind to these controls, what are the things I should take into consideration seriously?
I am willing to provide more detail if requested.
Thanks in advance !!
EDIT: MORE DETAIL
Scenario: User Control A is built to consume WCF service A. Now I need to make sure the control will still work if WCF service URI changes and also needs to handle a potential change in the ServiceContract.
I’ve used Properties extensively in configurable User Controls, and that has worked well. You can set the control’s properties in the container pages, and the dynamically set up the control.
It’s also important to note that you need to move most of your control’s code (i.e., the VB.Net/C# code in the CodeBehind file) to the PreRender event. You can set the control’s properties in the container page’s PageLoad event.