473,396 Members | 1,966 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,396 software developers and data experts.

Dataset or datasource control?

Hi all,

Having moved from dotnet V1.1 to V2 I am having some difficulty
understanding the new data access methods that seem to be preferred.
In V1.1 the dataset did everything that I needed, and now it seems that
the preferrence is the datasource control! aaarrrrgggg!

I have followed several example of how to manage the modification and
deletion of data from a gridview on as asp.net page and I have to say I
am impressed with its simplicity, however, can anyone point be to a
post or other online article that has the details of how to do this
using a dataset instead of a datasource?

I can bind my dataset to the gridview, but the entire edit/delete
functionality has gone. What am I missing?

Many thanks,

Jason

May 1 '06 #1
3 1285
Hi Jason,

The topic is broad, but here is a little hint: you can bind a Dataset
to an ObjectDataSource. What I am not sure at this moment is if it must
be a typed dataset, I think so. There might be other ways to go, but
this should work.

In terms of the recommended best practices, arquitecture or paterns,
let me tell you that after months of working with ASP 2.0 I have found
that there is many many ways to go - there isn't yet a "main"
arquitecture. You may want to look at the Start Kit's in the ASP.NET
web site to gather some ideas and select what is best for your
application.

Good luck!
Good luck.

May 1 '06 #2
Jason,
Not to sound like a broken record here, but have you looked at the
Quickstarts?
ASP.NET 1.1
http://samples.gotdotnet.com/quickst...formsauth.aspx

ASP.NET 2.0
http://www.asp.net/QuickStart/aspnet...formsauth.aspx

This also installs with the product.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jason James" wrote:
Hi all,

Having moved from dotnet V1.1 to V2 I am having some difficulty
understanding the new data access methods that seem to be preferred.
In V1.1 the dataset did everything that I needed, and now it seems that
the preferrence is the datasource control! aaarrrrgggg!

I have followed several example of how to manage the modification and
deletion of data from a gridview on as asp.net page and I have to say I
am impressed with its simplicity, however, can anyone point be to a
post or other online article that has the details of how to do this
using a dataset instead of a datasource?

I can bind my dataset to the gridview, but the entire edit/delete
functionality has gone. What am I missing?

Many thanks,

Jason

May 1 '06 #3

I would concur the "bind strongly typed dataset to the ObjectDataSource".

After a few experimentations, it worked best for me.

My main reason is that:

You need to bind GridViews to a SqlDataSource or ObjectDataSource.
N-tiered answers the question (for me) about whether to use the
SqlDataSource or the ObjectDataSource (object being the "winner").

My project runs a query to get 1000+ rows. But after the user gets that
data, they sort,page on it for several reps...before going onto another
(new) query.

Thus I populate the strongly typed DS , cache it. and bind it to the
ObjectDataSource as the user navigates the GridView.


"Neutrino" <ne*********@yahoo.com> wrote in message
news:11********************@y43g2000cwc.googlegrou ps.com...
Hi Jason,

The topic is broad, but here is a little hint: you can bind a Dataset
to an ObjectDataSource. What I am not sure at this moment is if it must
be a typed dataset, I think so. There might be other ways to go, but
this should work.

In terms of the recommended best practices, arquitecture or paterns,
let me tell you that after months of working with ASP 2.0 I have found
that there is many many ways to go - there isn't yet a "main"
arquitecture. You may want to look at the Start Kit's in the ASP.NET
web site to gather some ideas and select what is best for your
application.

Good luck!
Good luck.

May 1 '06 #4

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

Similar topics

2
by: David Whitfield | last post by:
Hi All - I am an experienced ASP developer but am new to ASP.NET and the .NET framework and am trying to learn how to access datasets. When I try to build the following page, I get the errow...
4
by: Eric | last post by:
Hi, can anyone guide me throught this: In my application, I have a global DataSet. I then run FTP processes in up to 10 simultaneous threads and each thread calls progress events in the main...
3
by: MajorTom | last post by:
Hello everybody, I need help on how to use the same datase in two different form, this is the scenario: at the first form I load a big dataset (ds1) for short, but I not want to load it again...
5
by: Jason | last post by:
I am having problems understanding how to access a datasource only once, fill a single dataset, and then reference that dataset multiple times through different user controls(ascx) found on the...
3
by: Bill | last post by:
I have a seating chart web form that has over 50 entry field controls (tables/booths) where I use a DropDownList box to select a single company name from a single large list of organizations (200...
1
by: Greg Cyrus | last post by:
Hi, i have created a function to open a Databse by OLEDB and fill it into a System.Data.DataSet-Objekt by oleDBAdapter.Fill-Mehtod.. Now I want to assign this DataSet to a normal...
1
by: Sean | last post by:
What is the best way to access the Underlying data of a DataGrid. I have two SQL tables joined and display some data from both, but I want to be able to on clicking of a row bring up a form that...
4
by: Brad Baker | last post by:
I'm going a little crazy :) I'm trying to bind a repeater control to a dataset on page load using the following code: if (Request.QueryString != null) { string customerid = Request.QueryString;...
4
by: John Sheppard | last post by:
Hello there I was wondering if anyone could help me, I am trying to pass a typed dataset to a dialoged child form by reference. I have binding sources sitting on the child form. So to refresh...
1
by: =?Utf-8?B?R3JlZw==?= | last post by:
Most of my background is with VB.Net and WinForm development and I am in the process of migrating my skills to C# Web Based development. I've come across something I'm not quite sure how I should...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.