R
Ryan
I'm in the process of learning more about building my ASP.NET website to use
my SQL datastore and am a bit confused about how ADO.NET works with ASP.NET.
This Microsoft article implies that using ADO.NET with ASP.NET applications
is the way of the past because newer controls allow you to do all your data
binding declaratively.
http://msdn2.microsoft.com/en-us/library/ms178359(d=ide).aspx
However, I haven't been able to get my application to work just using these
controls. There is a lot of complex dataprocessing that needs to be done
with code. For example, once a user completes filling out a resume form I
need to create a new item in the resume table, using the new resumeid I then
need to add rows to multiple tables (lets just say these resume forms are
pretty complex, the questions are created dynamically by backend users and
each form is related to positions they're applying for, the dynamic question
table, etc). So anyways, to cut a long story short, I'm thinking using
ADO.NET Datasets and Datatables is the way to go. I've done pretty well
using these features with my backend application (a Windows project using
Windows forms - not ASP.NET), but for the ASP.NET website user end I'm
missing the Data Sources window and the easy drag-drop capabilities of
creating and managing Datasets (including the Dataset designer). Is
Microsoft trying to discourage me from using Datasets with ASP.NET? What
should I be using to code the database queries? SQLdatasource is nice but
I'm finding it hard to use programmatically. It works nice to bind to
controls but that seems to be the only way it is usable.
Thanks for any advice.
Ryan
my SQL datastore and am a bit confused about how ADO.NET works with ASP.NET.
This Microsoft article implies that using ADO.NET with ASP.NET applications
is the way of the past because newer controls allow you to do all your data
binding declaratively.
http://msdn2.microsoft.com/en-us/library/ms178359(d=ide).aspx
However, I haven't been able to get my application to work just using these
controls. There is a lot of complex dataprocessing that needs to be done
with code. For example, once a user completes filling out a resume form I
need to create a new item in the resume table, using the new resumeid I then
need to add rows to multiple tables (lets just say these resume forms are
pretty complex, the questions are created dynamically by backend users and
each form is related to positions they're applying for, the dynamic question
table, etc). So anyways, to cut a long story short, I'm thinking using
ADO.NET Datasets and Datatables is the way to go. I've done pretty well
using these features with my backend application (a Windows project using
Windows forms - not ASP.NET), but for the ASP.NET website user end I'm
missing the Data Sources window and the easy drag-drop capabilities of
creating and managing Datasets (including the Dataset designer). Is
Microsoft trying to discourage me from using Datasets with ASP.NET? What
should I be using to code the database queries? SQLdatasource is nice but
I'm finding it hard to use programmatically. It works nice to bind to
controls but that seems to be the only way it is usable.
Thanks for any advice.
Ryan