Architecture for .NET application

J

Jeff

(.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
 
C

Cor Ligthert

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
 
G

Guest

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.
 
X

X_Factor

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top