Connecting Tech Pros Worldwide Help | Site Map

n-tier application - populating a combo box on a form

pod's Avatar
pod pod is offline
Member
 
Join Date: Sep 2007
Location: Gatineau (across the river from my national capital)
Posts: 82
#1: 2 Weeks Ago
I am new to OOD and n-tier architecture but I want to start the right way.

In Visual Studio, I have created a solution with three projects c/w reference to each other i.e. the Business Logic Layer, the Data Access Layer and the Presentation Layer. I think I understand the overall aspect of n-tier architecture but I seem to get stuck in the detail of things ... like how should I approach populating a combo box on the form (Presentation Layer) ... Do I need to create a class in the BusinessLogicLayer or Data Access Layer and set the combo box datasource to it?

I am tempted to write an SQL statement c/w connections and command parameters right in the form code and then set the control's datasource (the way I used to do it).


Please advise or point me to a very good tutorial that would illuminate me


Thank you in advance

P:oD
Reply