I've got some rather complex forms, that need to be configured by web designers.
I've been building some composite controls that appear to be doing the job.
The top level control is simply a container, and the sections of the form are contained within. SubControls implement common interfaces, (i.e. NeptuneAddressControl and MarsAddressControl implement IPlanetaryAddressControl)
Ultimately, everything needs to go into the same database.
Instead of exposing every field of the child controls as a prop in the parent, I'm thinking of implementing a Visitor that will span the control tree, and populate an Entity Object that can then write to the database.
Is this the right approach or am I way off base here?