473,805 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

3-Tier Application

Hi
I understood the 3-tier application but i have some questions
Step- UI->Business Process Layer
1.Howt to Pass the data from UI to middle layer
a. object.property =textbox.value
b. create middle tier as sqlobjectsource/Data Table
3. array/test/xml file

2. From Middle Layer to Data Layer
a. how to pass data
b. how to process data (add/edit/deete)
i. Stored Procedure
ii Ado.net
which is the best way

Jun 29 '06 #1
2 1296

First, this is good reading:
http://msdn.microsoft.com/library/de...tml/boagag.asp

Second:
Here's a link I've recently been involved with:
http://groups.google.com/group/micro...7435ab628da33?

Third:
You can get some downloadable examples at my blog:
http://sholliday.spaces.msn.com/PersonalSpace.aspx
6/5/2006 (2.0)
5/24/2006 (1.1)
(here is example of my tier system)

I usually create an object .. like EmployeeArg object... which holds the
data I need to add or update an employee.

EmployeeArg.SSN
EmployeeArg.Las tName
EmployeeArg.Fir stName
EmployeeArg.Dep tID

I create this object in the presentation, set its properties (from
textboxes, ddl's , etc)
and pass it as the input paramenter to a BizLayer object.

If you look at the boagag.asp.. article above:
the last few paragraphs talk about where to put these objects. (The article
suggests putting them in an assembly outside of the 3 tiers)

...


"Sachin Thamke" <Sachin Th****@discussi ons.microsoft.c om> wrote in message
news:1C******** *************** ***********@mic rosoft.com...
Hi
I understood the 3-tier application but i have some questions
Step- UI->Business Process Layer
1.Howt to Pass the data from UI to middle layer
a. object.property =textbox.value
b. create middle tier as sqlobjectsource/Data Table
3. array/test/xml file

2. From Middle Layer to Data Layer
a. how to pass data
b. how to process data (add/edit/deete)
i. Stored Procedure
ii Ado.net
which is the best way

Jun 29 '06 #2
In article <#R************ **@TK2MSFTNGP03 .phx.gbl>, sloan
<sl***@ipass.ne twrites
>Second:
Here's a link I've recently been involved with:
http://groups.google.com/group/micro...mework.aspnet/
browse_threa d/thread/4f56ea8da21fdff f/a017435ab628da3 3?
And jolly helpful you were too ;-)

Quick update (you didn't reply to may last post there): I've got a bit
more a grip of the point of these layers now, mainly due to those data
access tutorials I mentioned in my first post. Some of the examples they
used highlighted the benefit of splitting the layers.

Now all I need to do is see what performance hit (if any) is caused by
separating everything into layers rather than having it all in the one.

Ta ra

--
Alan Silver
(anything added below this line is nothing to do with me)
Jul 2 '06 #3

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

Similar topics

33
15892
by: aa | last post by:
I am migrating to PHP from ASP where there are the Application Scope variables which are accessible from any page on a website and which are used, in particular, for hit counters. Is there a similar mechanism in PHP?
9
3293
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data from the "cache" hardly takes any time A basic pattern used to get the data from disk, or from cache is this data = getDataFromCache("mydata" if data = "" the data = getDataFromDisk( storeDataInCache(data, "mydata" end i
3
3155
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application there. There is performance degradation. The usual performance of the application on MP machine is better than that of uni processor machine. But the performance of MP degrades when it comes to the multi-threaded part of the application. I am...
6
20088
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are quite a few words in this post but the questions are actually quite similar and should be fairly quick to answer ... (1) What is Happening with the Threads
21
2183
by: Chris | last post by:
I'm trying to get an existing VS.NET project up on my Win2003 server and I get the following error (on the actual website page): "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS." I've been told by the previous developer that the website needs to be set as a "application". I...
3
2218
by: Carl Johansen | last post by:
I have a big ASP website (used by several thousand car dealers) that is a collection of lots of small and medium-sized applications. Now I want to start adding ASP.NET applications to it. I have read Q307467 (How To Create an ASP.NET Application from Multiple Projects for Team Development) and it seems to work well. I understand that when you create a web project in VS.NET, it creates an IIS application root, and that you can remove this...
20
2725
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in contrast to one of them always being 'modal' (e.g., if you are moving over a picture the 'Info' form will update the (x,y) screen location in realtime even if not the selected form. Also note that this example implies the various forms can communicate...
6
25080
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42
9
2993
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... - preload the .net 2 framework (windows startup or whatever) - splash a screen ... application loading ... please wait ... type of
7
4315
by: Jay | last post by:
In my C# code, I'm attempting to display a message box then quit the win form application I'm writing if a certain type of error occurs when the application starts up. In the main form's constructor - FormMain() - if this error occurs, I display a message box then call Application.Exit(). The problem is that I also need to have some code in my FormMain_FormClosing event handler, but this prevents Application.Exit() from quitting the...
0
9596
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,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10356
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10361
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
10103
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...
1
7644
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
6874
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
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.