Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object coding - returning UI Objects

Status
Not open for further replies.

Badgers

Programmer
Nov 20, 2001
187
US
Hi,

I have a object data access layer which I use to return data via a datareader / dataset. I'm think of creating a Business Logic Layer, to actually return UI components instead.

For eg; Instead a calling a DAL layer 3 times and writing the code to build a dropdown box, why not call a BLL function which does the data access and return the dropdown already populated.

Is there much overhead with doing this in .net - is it okay as stuff is byref by default ?

Thanks inadvance.
 
Why dont you just bind the ddl to the datareader or dataset, and let the .net framework do the hardwork for you?

To answer your question though, the business layer should hanlde business logic. Creating a ddl is really a function of the presentation layer.

If you want to do it that way, have the Business layer return an arraylist or List<>, so that you can leave how hte data is presented to the top layer.

Just my $.02

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top