473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

My first asp2 code

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.

Aug 16 '06 #1
1 1125

"???? ???????" <@discussions.microsoft.comwrote in message
news:01**********************************@microsof t.com...
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!
*************************************************
Aug 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Jools | last post by:
We have clients insisting on using IIS4 and the code (written by someone else who left the company before I joined) is ASP3. I am no expert in ASP so can you give any suggestions or recomendations...
6
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
13
by: Patrick | last post by:
I understand that with IIS5.1 on Windows XP Professional SP1, I can 1) Either set under IIS Manager-> Any specific Virtual Directory-> Configuration->Options->ASP Script timeout for all pages...
0
by: aa | last post by:
how to change provider for all site management data in ASP2.0 I see just one aspnetsql provider, but i cant add new
8
by: Thomas Coleman | last post by:
Ok, I've obviously discovered that Global.aspx has been completely changed in ..NET 2.0. However, I haven't figured out how to declare a constant that's available to any page in my application...
1
by: Roland Müller | last post by:
Hello, we have converted our project to framework 2.0 but we have still some problems, one of it with setting the UICulture for a aspx-site. Example: there is a simple aspx test site in a...
6
by: Michael Tissington | last post by:
I have setup up Forms Authentication on my website and added configuration/mappings for exe, pdf and zip files (using C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll) However when...
1
by: Charlie | last post by:
Hi: I'm trying to pass a reference to a user control to a class. The user control exposes its elements via properties. When I inspect parameter (user control is passed to class using "this") I...
5
by: draynos | last post by:
Hi! I tried to deploy my asp2.0 application to our current webserver(windows 2000 and windows 2003). The problem is i can only view the code-behind of the page and i can't see the graphical...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.