PC Review


Reply
Thread Tools Rate Thread

Architecture for .NET application

 
 
Jeff
Guest
Posts: n/a
 
      19th Aug 2004
(.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
 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      19th Aug 2004
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



 
Reply With Quote
 
=?Utf-8?B?SlJ1c2g=?=
Guest
Posts: n/a
 
      19th Aug 2004
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
>
>
>
>

 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      19th Aug 2004
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


 
Reply With Quote
 
X_Factor
Guest
Posts: n/a
 
      19th Aug 2004
> 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Architecture Andrew Stewart Microsoft Dot NET 1 2nd Sep 2008 06:53 AM
A little help with application architecture perplexed Microsoft ASP .NET 0 1st Feb 2007 06:22 PM
Web application architecture using 2.0 cschuman@gmail.com Microsoft Dot NET 2 12th Dec 2006 12:05 AM
application architecture in asp.net =?Utf-8?B?Q2FwdGFpbkRlZXA=?= Microsoft ASP .NET 8 8th Sep 2006 07:18 PM
Need help with application architecture Ook Microsoft Dot NET Framework 3 30th Dec 2003 05:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:50 PM.