473,657 Members | 2,537 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it recommended to use datasets in ASP.Net ?

Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ?

Best Regards,

Luqman


Mar 27 '06 #1
16 1926
Hello Luqman,

if you are interested in -just- reading data from whatever database,
you might want to take a look at the 'datareader', as it is more
effecient than the dataset.
Ofcourse if you wish to CRUD with data a dataset will do just fine.
also, you might want to take a look at the new datasource controls
available in asp.net 2.0, these too can do alot of work for you.

Egu

Mar 27 '06 #2
Only if you need them.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

"Luqman" <pe*******@cybe r.net.pk> wrote in message
news:eO******** ******@tk2msftn gp13.phx.gbl...
Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ?

Best Regards,

Luqman


Mar 27 '06 #3
Datasets are principal building blocks for business logic in dotnet.
Consider using them in all cases where you care about business logic.

Eliyahu

"Luqman" <pe*******@cybe r.net.pk> wrote in message
news:eO******** ******@tk2msftn gp13.phx.gbl...
Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ?

Best Regards,

Luqman


Mar 27 '06 #4
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:Or******** ******@TK2MSFTN GP12.phx.gbl...
Only if you need them.


:-)
Mar 27 '06 #5
"Luqman" <pe*******@cybe r.net.pk> wrote in message
news:eO******** ******@tk2msftn gp13.phx.gbl...
Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ?


Yes, particularly if you're working with databases... ;-)
Mar 27 '06 #6
objects and classes are the principal building blocks for business logic in
..NET. A DataSet is merely an existing generic container for this - one that
many would say it's drawbacks far outweigh it's
benefits.

Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:OE******** ******@TK2MSFTN GP09.phx.gbl...
Datasets are principal building blocks for business logic in dotnet.
Consider using them in all cases where you care about business logic.

Eliyahu

"Luqman" <pe*******@cybe r.net.pk> wrote in message
news:eO******** ******@tk2msftn gp13.phx.gbl...
Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ?

Best Regards,

Luqman



Mar 27 '06 #7
I disagree. datasets are bloated and break from traditional OO practices.
It's possible to build a solid domain layer around datasets, but requires
extra discipline and care.

It's an ongoing debate which developers should familiarize themeselves with
deeply:
http://msdn.microsoft.com/library/de...CustEntCls.asp

http://scottonwriting.net/sowblog/posts/3867.aspx

Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
"Luqman" <pe*******@cybe r.net.pk> wrote in message
news:eO******** ******@tk2msftn gp13.phx.gbl...
Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ?


Yes, particularly if you're working with databases... ;-)

Mar 27 '06 #8
From my point of view,

when your business logic layer is very thin and you just need to forward
insert, update and select operations to the datalayer then you can use
datasets (typed or not but I like to put all my typed dataset in another
layer which I call commonlayer), of course if your application requires a
more complex business logic it could happen that dataset are not enough so
you can still use them for data transfers, but probably you will need
objects (class definitions) to "envelope" your process logic...

anyway you can heaven inherit from dataset and add your own methods and
properties...

Davide.
Mar 27 '06 #9
Objects and classes are too general notions. Datasets come with strong
typing and design tools that do good job for you. Again, they are good when
you care about business logic. When you don't, when all you need is just to
provide data to your form, then they are indeed too heavy.

Eliyahu

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
objects and classes are the principal building blocks for business logic
in .NET. A DataSet is merely an existing generic container for this - one
that many would say it's drawbacks far outweigh it's
benefits.

Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Eliyahu Goldin" <re************ *@monarchmed.co m> wrote in message
news:OE******** ******@TK2MSFTN GP09.phx.gbl...
Datasets are principal building blocks for business logic in dotnet.
Consider using them in all cases where you care about business logic.

Eliyahu

"Luqman" <pe*******@cybe r.net.pk> wrote in message
news:eO******** ******@tk2msftn gp13.phx.gbl...
Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ?

Best Regards,

Luqman




Mar 27 '06 #10

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

Similar topics

4
1730
by: Alpha | last post by:
I have a small Window application and through out the different forms I create a different dataset. At the begining I used the Tools to drag and drop the SqlDataAdapter, connection and dataset objects to the frist few forms but then later I removed those and created these objects in my code. I now see 3 datasets in the Solution Explorer panel part but not all the datasets that I have in my codes. Are these 3 datasets leftover from the...
9
2900
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got answered... There are articles on the new TableAdapters where it says that a key new advantage is that a single TableAdapter, which can have multiple queries, can be used on multiple forms. Now that was in an article on using TableAdapters with...
4
9915
by: Ronald S. Cook | last post by:
I've always used untyped datasets. In a Microsoft course, it walks through creating typed datasets and harps on the benefits. It has you drag all these things around ..wizard, wizard, wizard... code gen, code gen, code gen. What's at the end looks slick, but then there's a ton of generated code that I'm going to have to maintain now. I.e. I like typing things myself (don't like wizards) so I can know exactly what I've done.
25
2764
by: Penelope Dramas | last post by:
Hello, I'm in a front of very serious .net redesign/rewrite of an old VB6 application. I had been asked to make it .NET 2.0 and would like to ask couple of questions regarding data access as this application is heavily data-centric around MSDE database. Would it be better to use custom business objects or extend
2
1363
by: S.Tedeschi | last post by:
Hi all gurus. I'm trying to switch to VS 2005, from VS 2003. I've an ASP.NET 1.1 app heavily relying on StronglyTyped DataSets, with lots of FindByKey..., dataSet.Tablename, and similar methods. Converting to ASP.NET 2.0 leaves dataSets' classes unconverted, as stated by M$; what's worse, I'm not able to use converted dataSets, nor new ones, but just non- typed dataSets declared directly in pages (or code-behind), and so I'm not allowed...
0
1216
by: S.Tedeschi | last post by:
Hi all; as posted some days ago, I'm converting an on-line app; I used to heavily rely on strongly-typed DataSets directly dropped onto pages, and so viewed by code(-behind) as well. In the next two weeks I discovered that such objects are no more directly usable in pages, namely in DataGrid which don't see them any more. Even if rebuilt in Component Designer, and so visible in code, DataSets are invisible in Page Designer, so now it's...
1
1353
by: Jasbird | last post by:
Is there a recommended book for ASP.NET which avoids DataSets and DataTables in favour of collections and uses code behind to bind data to controls rather than using SqlDataSource and ObjectDataSouce?
12
3581
by: BillE | last post by:
I'm trying to decide if it is better to use typed datasets or business objects, so I would appreciate any thoughts from someone with more experience. When I use a business object to populate a gridview, for example, I loop through a datareader, populating an array list with instances of a custom class in the middle tier, and then send the array list up to the presentation layer and bind the gridview to it. If I use a typed dataset, I...
9
1937
by: gardnern | last post by:
We have X number of data sets, of Y length each. For example... Small, Medium, Large and Red, Green, Blue, Yellow We need to generate a list of all possibilities Small Red
0
8303
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8821
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8502
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8602
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.