Re: ASP.Net Classes

From: Joris Dobbelsteen (none.of_at_your.business)
Date: 06/17/04


Date: Thu, 17 Jun 2004 18:17:40 +0200

The best solution would be to develop a layer that handles everything that
is not displaying or formatting information on the actual web page and
cannot be handled by the database itself.

Doing so would be an option, if it suits your application. Don't make a
class to large, but rather keep them small. Multiple classes are easier to
handle that a single class containing everything, obviously depending on the
complexity.

I have a very small application where there is (currently) a single class
that handles getting information from either the ASP.NET cache or from the
database. The loading is located here, since many pages use the same
information. The actual query is a stored procedure in the MSSQL server.
The page only handles loading the data into Repeaters and setting HTTP cache
options (and allow Validation to work properly for the dynamic pages).

When you develop the middle layer correctly, then you can later replace the
web application by a windows forms application with very little trouble
(only rebuilding the UI).

Generally, take as less effort as you need for the application, but put some
in to make it a clean design.

- Joris

"Big E" <nospam@nospam.com> wrote in message
news:eLLr9DIVEHA.4088@TK2MSFTNGP09.phx.gbl...
> I've created a couple classes for functions that I use across the
> application but should I be created a class for all my DataSet, DataTables
> etc... called clsData?
>
>
> "Big E" <nospam@nospam.com> wrote in message
> news:uC3rmkAVEHA.1292@TK2MSFTNGP10.phx.gbl...
> > I'm using ASP.Net and SQL Server 2000.
> > There are many things in my ASP.Net application that I use over and
over.
> > For instance my Connection to the database. I've stored that in the
> > webconfig. But how do I store other Functions or Variables throughout
the
> > entire application. Classes? What is the difference between a Windows
> Forms
> > Class and a ASP.Net class. Do people use custom classes in ASP.Net.
> >
> > If you have any links on creating ASP.Net classes please post.
> >
> > Thanks.
> >
> > Big E
> >
> >
>
>



Relevant Pages

  • Re: Looking for a decent data access architecture to implement
    ... > application so that there is a clean separation between the data access ... > layer, the business layer and the GUI layer. ... > the actual database. ...
    (microsoft.public.dotnet.languages.csharp)
  • Looking for a decent data access architecture to implement
    ... application so that there is a clean separation between the data access ... layer, the business layer and the GUI layer. ... the actual database. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: "Business Objects" and the DAL
    ... layer talks to the layer next to it. ... business entity returned that up to the UI for binding to a grid. ... If a database table column names ... Each could be considered a "pattern", ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Size matters to some
    ... The underlying remote database connection ... physical layer is actually managing it all, the logical layer is forced to ... constraints as specified by developers. ... want to validate the information getting written. ...
    (comp.databases.pick)
  • Re: OO vs. RDB challenge
    ... > Layer 1. ... If you filter your data after you retrieve it, ... possible to redesign the database schema to enable SQL to do its job. ... A good RDBMS could integrate an external authentication server. ...
    (comp.object)