Hi TheLearnedOne,
So I have an interface with a method:
DataTable SetBusinessProfileDataSour
My aspx page (the view) implements this interface like so:
public DataTable SetBusinessProfileDataSour
My presenter class does the work, i.e. creates the datatable from the database and calls SetBusinessProfileDataSour
view.SetBusinessProfileDat
The aspx view, presenter and model are on different layers
__
So my question is (from my above post)
I do not want my view layer to have any knowledge of system.data so how can I set the datasourse of my dropDownList?
The only thing I can think of is having a return type of Object then just letting my Presenter set a datatable as my datasourse and that might work.
Also having a Domain Object and using that as the data source of my dropDownList, but I would prefer to use a datatable as I don't want to write a domain object each time I want to do something like this
Any suggestions or best practices?
Thanks for your help
Main Topics
Browse All Topics





by: TheLearnedOnePosted on 2007-05-23 at 07:01:33ID: 19141546
How is your model defined?
Bob