473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Architecture for .NET application

(.NET rookie alert)

I am in the planning/design stage of converting a VB 6 application to
a .NET web-based application so that our clients can simply use their
browser (IE 6). Current architecture is fairly basic: the VB forms
contain the presentation logic, the business logic is in classes, and
we have a data connection DLL. After some rudimentary research
through documentation and newsgroups, my initial thought is to design
the new app as follows (using Visual Studio.NET):

1) Use VB.NET to create the business logic (via classes); compile as
DLLs which will reside on the server. NOTE: Data connection via
ADO.NET will be handled in its own "virtual layer".

2) Use ASP.NET to create the presentation layer. I do not expect to
have any business logic or data connection logic within this layer.
Everything will be handled via Server objects (#1)

Thoughts? Am I way off base here?

Thanks
Nov 21 '05 #1
4 1233
Jeff,

AspNet is stateless.

That means that it is not as easy to use classes and shared classes as with
window forms.

Instanced object will be go out of scope as soon as the page is sand again
to the user. (Think that only one method from a button is done and than
again goes everything out of scope).

Shared classes belong to all users that are loged in, so that means that you
should make a lot of code to seperate all users that use a sharedclass
yourself.

Not positive maybe however I hope it gives some ideas

Cor

Nov 21 '05 #2
Thanks for the response.

I hate to ask such a generic question, but I'll do it anyway: So what is
the "best" approach/architecture? The client insists on a browser as the
interface.

"Cor Ligthert" wrote:
Jeff,

AspNet is stateless.

That means that it is not as easy to use classes and shared classes as with
window forms.

Instanced object will be go out of scope as soon as the page is sand again
to the user. (Think that only one method from a button is done and than
again goes everything out of scope).

Shared classes belong to all users that are loged in, so that means that you
should make a lot of code to seperate all users that use a sharedclass
yourself.

Not positive maybe however I hope it gives some ideas

Cor

Nov 21 '05 #3
I hate the word "Best" because it always depends on so many factors.

Do you mind if I point you on this, it is full of examples even complete
applications.

http://msdn.microsoft.com/asp.net/asprk/

I hope this helps a little bit?

Cor
Nov 21 '05 #4
> Jeffwrote:
(.NET rookie alert)

I am in the planning/design stage of converting a VB 6 application to a .NET web-based application so that our clients can simply use their browser (IE 6). Current architecture is fairly basic: the VB forms contain the presentation logic, the business logic is in classes, and we have a data connection DLL. After some rudimentary research
through documentation and newsgroups, my initial thought is to design the new app as follows (using Visual Studio.NET):

1) Use VB.NET to create the business logic (via classes); compile as DLLs which will reside on the server. NOTE: Data connection via
ADO.NET will be handled in its own "virtual layer".

2) Use ASP.NET to create the presentation layer. I do not expect to have any business logic or data connection logic within this layer. Everything will be handled via Server objects (#1)

Thoughts? Am I way off base here?

Thanks


This is how we are doing it at work. We have a DLL that handles the
database and emails. The connection string and smtp server is in the
web.config file. We have a DLL for each sub-section of our web app.
Each sub-section has a reference of the database/email DLL. We then
bring all those sub apps into one DLL and tie that DLL to a security
level DLL. Then we tied that DLL our presentation layer.

What is interesting is that a lot of books and examples on the net
don't seem to go into n-tier application development enough in .Net.
Most examples I seen show business logic in the ASPX page. We are
VB.Net at work, but I am trying to do the same in C# at home.
Although C# looks better, VB.Net has a lot of short cuts I find time
saving in terms of coding.

Nov 21 '05 #5

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

Similar topics

3
by: Michael Crawford | last post by:
Hi, Where would one start for this type of application: I want to create an vb.net container application that has the gives the end user the ability to install and uninstall plugins or add-in...
25
by: David Noble | last post by:
We've been developing a web site using 3-tier architecture for 18 months now. There is a common layer that defines the classes - using XML schemas. The data layer acts as a wrapper to 3 databases...
0
by: Vin | last post by:
Hi, I've got a VB.Net + ASP.Net message board application which has already been customized. There are two solutions in this application. 1. The front end aspx, aspx.vb files, User controls...
3
by: Johnny Meredith | last post by:
Hi, I'm relaively new to programming languages in general, and brand new to VB.NET. I use/used VBA in MS Access previously to do what I needed. I want to learn VB.NET to stretch my boundaries a...
2
by: hans | last post by:
Hi! I am new to .NET (coming from Java). We have to implement a desktop application which extracts data from a database, does some analysis, filtering etc. and displays the results. I have...
6
by: Gary James | last post by:
This may not be a direct C# question, but since I'll be using using C# for development, I thought I'd pose the question here. I'll soon be involved in the design of a new software product that...
3
by: RAJESH | last post by:
I am working with c# and asp.net in developing web applications, iam using ..netframework 1.1 ,i want to know what is the need of 3-tier or 4-tier architecture in our application development.what...
3
by: Julia | last post by:
I need help with architecture design,please: I have a server which constantly downloading messages from the internet and store them inside a data base. the server have two administrators...
2
by: Silent Ocean | last post by:
Hi 1. I am in process of designing N-Tier Application using ASP.NET. Can anyone guide me the right material or microsoft guidelines document which I can used in designing the N-Tier application....
1
by: abhijitbkulkarni | last post by:
Hello, I am designing a .NET database application that uses 3 tier architecture. Starting initially, this application will be desktop application but I will convert it into a website later but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...
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...

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.