A design pattern for data binding an object (with subclasses) to asp.net user control
- by Rohith Nair
I have an abstract class called Address and I am deriving three classes ; HomeAddress, Work Address, NextOfKin address.
My idea is to bind this to a usercontrol and based on the type of Address it should bind properly to the ASP.NET user control.
My idea is the user control doesn't know which address it is going to present and based on the type…