Re: ASP.Net Classes
From: Joris Dobbelsteen (none.of_at_your.business)
Date: 06/17/04
- Next message: Sunil Sabir: "Data Reader Error"
- Previous message: John Saunders: "Re: Using Page Object in VB Class File"
- In reply to: Big E: "Re: ASP.Net Classes"
- Next in thread: John Saunders: "Re: ASP.Net Classes"
- Messages sorted by: [ date ] [ thread ]
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
> >
> >
>
>
- Next message: Sunil Sabir: "Data Reader Error"
- Previous message: John Saunders: "Re: Using Page Object in VB Class File"
- In reply to: Big E: "Re: ASP.Net Classes"
- Next in thread: John Saunders: "Re: ASP.Net Classes"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|