473,473 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how can i tell...

ari
hey all,

being kinda new with .net, how can i tell if i'm writing logic in my ui
that's suppose to be in the lower levels (business, data layers)? i know
about the ui process app block however, it's not clicking yet.

Anyone have some simple advice out there so i can catch myself doing this?

thanks,
ari
Nov 21 '05 #1
3 889
I am not a strict adherent, but if you have logic in your form then yes it
needs to be in a different layer.
button_click
'no logic here

dim c as controller=new controller
c.handle buttonclick...

--
--Eric Cathell, MCSA
"ari" <ar*@discussions.microsoft.com> wrote in message
news:8B**********************************@microsof t.com...
hey all,

being kinda new with .net, how can i tell if i'm writing logic in my ui
that's suppose to be in the lower levels (business, data layers)? i know
about the ui process app block however, it's not clicking yet.

Anyone have some simple advice out there so i can catch myself doing this?

thanks,
ari

Nov 21 '05 #2
The idea behind business objects is to abstract your problem domain from your
user interface. Problem domain is a fancy word that is used to describe what
your application is really trying to do. The best way to avoid mixing your
form code and your business objects is to design you business objects first.
Define all business objects that will support all the requirements of your
problem domain before even writing one line of code in a form.

"ari" wrote:
hey all,

being kinda new with .net, how can i tell if i'm writing logic in my ui
that's suppose to be in the lower levels (business, data layers)? i know
about the ui process app block however, it's not clicking yet.

Anyone have some simple advice out there so i can catch myself doing this?

thanks,
ari

Nov 21 '05 #3
ari
thanks everyone this has been really helpful.
ari

"ari" wrote:
hey all,

being kinda new with .net, how can i tell if i'm writing logic in my ui
that's suppose to be in the lower levels (business, data layers)? i know
about the ui process app block however, it's not clicking yet.

Anyone have some simple advice out there so i can catch myself doing this?

thanks,
ari

Nov 21 '05 #4

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

Similar topics

3
by: Jonathan | last post by:
Rather than me explain the problem, read this exchange of emails between my web host and myself, then tell me what I can tell them! I had a problem with their admin site all day, and after me...
8
by: Peter Abel | last post by:
Hi all, I'm working under W2k with Python 2.2.2 (#37, Oct 14 2002, 17:02:34) on win32 I have a file *test_data.txt* with the following content: 0123456789 0123456789 abcdefghi...
3
by: Pernell Williams | last post by:
Hi all: I am new to Python, and this is my first post (and it won't be my last!), so HELLO EVERYONE!! I am attempting to use "xreadlines", an outer loop and an inner loop in conjunction with...
3
by: N. Volbers | last post by:
Hello everyone, I noticed that when you open a zipped tarball using 'tarfile' and if you then get the pseudo-file descriptor fd for a file via 'extractfile', then fd.tell() is broken in the...
1
by: jazzMan007 | last post by:
Hi All - I'm using the new UrlMappings feature in an ASP.NET 2.0 application. I'm using the unique urls, mapped to shared files, in the site map. So for example, I have pages A, B, & C...all of...
13
by: Jiho Han | last post by:
Here's the issue. You have a class, Class Person { public int id; public string firstname; public string lastname; }
3
by: sara | last post by:
Hi - I have a button that runs 2 reports. If there is no data on the report, I use the No Data event, and tell the user, and Cancel the execution of that report. However, if the first report...
3
by: Magdoll | last post by:
I was trying to map various locations in a file to a dictionary. At first I read through the file using a for-loop, but tell() gave back weird results, so I switched to while, then it worked. ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
1
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...
0
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...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.