473,804 Members | 3,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
http://www.dotnetnewsgroups.com
Jan 13 '06 #1
3 1157
I don't know the smartest way! Not sure I would use the interface
approach directly on a usercontrol. I prefer a Model View Controller
pattern, maybe an additional facade class that can separate the
presentation logic from the business logic? In the short term it is
slower but over time your code will be easier to maintain...

HTH

-----------------------------------------
David Gray
ASP.NET/C# Developer/Architect (MCAD.NET)

On Thu, 12 Jan 2006 19:44:22 -0800, Dave Johnson
<es*********@gm ail.com> wrote:
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

Jan 13 '06 #2
greetings david,

thnx for your reply but could you give more explanation on how you might
solve this kind of problem and on what basis you have chosen this
solution ? that might help, thanks alot!

Sharing makes All the Difference

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Jan 13 '06 #3
Hi Dave,

In good tiered architecture, ignorance flows downhill. That is, the data
layer knows nothing about the business layer. The business layer knows
nothing about the presentation layer. This enables the data layer to be used
by any business layer, and the business layer to be used by any presentation
layer. The business layer must know something about the data layer (its
programming interface) in order to use it. The presentation layer must know
about the programming interface of the business layer in order to use it.
So, don't modify the business layer to suit the presentation layer. Modify
the presentation layer to suit the business layer.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.

"Dave Johnson" <es*********@gm ail.com> wrote in message
news:u8******** *****@TK2MSFTNG P14.phx.gbl...
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
http://www.dotnetnewsgroups.com

Jan 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2352
by: Ann Morris | last post by:
INTRODUCTION One of the most powerful aspects of .NET and Windows Forms is data binding. Data binding is the process of associating user interface (UI) elements with a data source to generate a visual representation of data. Two types of data binding are available for Windows Forms: Simple Data Binding and Complex Data Binding. Simple data binding allows you to bind one data element to a control. In many situations you want to display...
1
7942
by: JD Kronicz | last post by:
Hi .. I have an issue I have been beating my head against the wall on for some time. I am trying to use late binding for MS graph so that my end users don't have to worry about having the right version of the MS Graph type library. Up until now I have been walking them through the process of setting the references to include their version of MS Graph library. My problem is that I can not seem to get the syntax correct .. or perhaps...
9
10431
by: Zlatko Matiæ | last post by:
I was reading about late binding, but I'm not completely sure what is to be done in order to adjust code to late binding... For example, I'm not sure if this is correct: early binding: Dim ws As DAO.Workspace Dim db As DAO.Database Dim qdf As DAO.QueryDef Dim rs As DAO.Recordset
1
2634
by: Bruce | last post by:
Hi, there, I meet a problem about comboBox binding. -------------------- Database: Northwind Tables: 1) Products 2) Categories I create a form (named "form1") to edit the record from Products table.
0
4809
by: JSantora | last post by:
Essentially, InsertAT is broken! For the past couple of hours, I've been getting this "Parameter name: '-2147483550' is not a valid value for 'index'." error. Apparently, its caused by having manually inserted a row in the table bound to the Combo box. The InsertAt Method of adding a row just does not work. Hope this helps anyone with this problem. john
30
2840
by: lgbjr | last post by:
hi All, I've decided to use Options Strict ON in one of my apps and now I'm trying to fix a late binding issue. I have 5 integer arrays: dim IA1(500), IA2(500), IA3(500), IA4(500), IA5(500) as integer The integers in these arrays are actually pointers to different columns of data in a text file.
0
2350
by: Steven Bolard | last post by:
Hello, I am trying to port my .net 1.1 application to 2.0. I am using vs2005. I am trying to get my webservices to run and although i can compile them and and get wsdl and service descriptions through internet explorer when hitting the ..asmx url, i cannot generate a proxy class to use in my winforms assembly. When i try to generate a proxy, i get no error message but nor do i get a reference.vb so there is no type info. If i then try...
6
2451
by: Mikus Sleiners | last post by:
Is there any way to enable exception throws in VS 2005, that occur during binding operations? I am upset that i can't see exceptions that are thrown during binding operations. It's very hard to track down erroneous behaviour of your app if you can't see where the problem is... i mean it's realy hard to debug binding issues and it would be realy of help if i could somehow enable this during debug session.
15
3117
by: Tom Gur | last post by:
Hi, What is early/late binding ?
3
16074
ADezii
by: ADezii | last post by:
The process of verifying that an Object exists and that a specified Property or Method is valid is called Binding. There are two times when this verification process can take place: during compile time (Early Binding) or run time (Late Binding). When you declare an Object Variable as a specific Data Type, you are using Early Binding so the verification can take place during compile time. When you declare a Variable of the generic Object Data...
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.