My first asp2 code

G

Guest

Hi,
I've developed few asp 1.1 application, now I'm about to develop my first
asp2.0 appliation.
I'm afraid to use old techniques so I want to focus and learn the best
Asp2.0 techniques.
How do u implement your 3tier flow from user to db?
1. Which control to u use to present report data? Do u use the gridview?
2. How do u bind your business object to the data control? Do u use object
Data source? Or maybe you create generic collection of your
Business object which the gridview can accept as data source?
3. Do u use the new vs2005 DAL wizard which creates xml DAL out
Of db structure? Or do u use the new MS DAL block with generics?
4. Is there good tutorial about asp2 techniques for managing data (in
Msdn there are plenty articles, many of them use data oriented techniques
Such as datasets, etc… I don't like this approach).

Thanks.
 
C

Cowboy \(Gregory A. Beamer\)

???? ??????? said:
Hi,
I've developed few asp 1.1 application, now I'm about to develop my first
asp2.0 appliation.
I'm afraid to use old techniques so I want to focus and learn the best
Asp2.0 techniques.
How do u implement your 3tier flow from user to db?
1. Which control to u use to present report data? Do u use the gridview?

GridView is a good way to display tabular data.
2. How do u bind your business object to the data control? Do u use object
Data source? Or maybe you create generic collection of your
Business object which the gridview can accept as data source?

As long as your collection utilizes the proper interface(s) you can bind it
to a GridView. I like inheriting from Generic List (generics), which is
bindable.
3. Do u use the new vs2005 DAL wizard which creates xml DAL out
Of db structure? Or do u use the new MS DAL block with generics?

This depends on a lot of factors, but I am more impressed with generics for
so many reasons.
4. Is there good tutorial about asp2 techniques for managing data (in
Msdn there are plenty articles, many of them use data oriented techniques
Such as datasets, etc. I don't like this approach).

DataSets, underneath, are objects (XML which translates to objects as you
need them in some cases). It works fine. There is a third party tool called
Persistant DataSets which creates objects from a Typed DataSet and works
rather well, so I would not count out DataSets. Would I wrap them for a
business interface? Sure. Either wrap or inherit. And, code gens are a great
way to get things up and running quickly.

DataSets with table adapters are fine for many architetures and Scott
Guthrie has blogged extensively about them. As they are DataSets, they are
serializable, so they are useful in a SOA environ.

Not sure of an OO type primer, as the focus is largely on DataSets. Tools
like LLBLGen Pro take another tack, which is perfectly acceptable (gened
objects with dyunamic SQL queries).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside the box!
*************************************************
 

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