all groups > dotnet distributed apps > january 2006 >
You're in the

dotnet distributed apps

group:

3-Tier Binding Problem ?????????


3-Tier Binding Problem ????????? Dave Johnson
1/12/2006 7:43:15 PM
dotnet distributed apps:
In a 3-Tier application, once upon a while comes the need for binding
objects or usercontrols from other objects, example binding a
usercontrol in the Presentation layer from a Business Layer Object,

My problem:

I have a Dynamically Rendered WebUserControl that it needs some
properties that will control how this WebUserControl be Rendered. The
information needed are found in a business layer Object. What I thought
about is making both the WebUserControl and the Business Class share the
same Interface. So that I can bind easly the properties of the Business
Object to the Control.

Is this kind of solution is possible ?? what is the smartest way to do
it ??

Please help of you are able to layout a proposed solution to this
problem or at least state some good guidelines it will be much
appreciated.

Best Regards,


Sharing makes All the Difference

--
Sent via .NET Newsgroups
Re: 3-Tier Binding Problem ????????? DKode
1/18/2006 7:52:34 AM
I dont think an interface is really the answer your're looking for
here.

IMHO, I would just setup some properties in your business layer object
that you can access from your presentation layer usercontrol to
determine its rendering.

[quoted text, click to view]
functionality in two objects, for instance... let's say your business
layer object and presentation usercontrol both need functionality to
add items to a queue, or both need functionality to enumerate, you
would inherit IEnumerable. Interfaces shouldnt be used for semantics
like rendering.

If you supply more information on exactly how your business layer
object and presentation layer usercontrol are setup and what you need
to test for, i might be able to give you more direction. just need some
more info on how your objects are actually setup.
AddThis Social Bookmark Button