Hi.
I have a number of data classes; say dataType1, dataType2, etc.
I would like to create a user control to display each type of data. So uc_dt1, uc_dt2, uc_dt3
I have contemplated either making each type of user control a derived class from a base user control so that all of the control inherit from the base class. However, I would prefer to define an interface that all of the user controls implement. That way
each user control will implement the interface and there will be now confusing with overriding base methods....
I would then like to implement a "display" method in each dataType that returns an object implementing the interface (ie it returns a user control that implements the interface).
Then if I have a page where I want to display any data I can have a placeholder. In the code behind for the page I create/load the data and simply execute dataObject.display to get the user control that I need to add to the placeholder. ...
Go to the complete details ...