L
Luqman
Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ?
Best Regards,
Luqman
Best Regards,
Luqman
Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ?
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.
Kevin Spencer said:Well, now, I wouldn't say that is set in stone. There are situations where
DataSets are completely appropriate, although I imagine they arise less
often in ASP.Net applications. For example, I'm currently working with a
Windows Forms app that interacts with a half-dozen tables in the same
database. It is a multi-user app, and as it requires navigating among the
tables with a lot of freedom, I'm using a strongly-typed DataSet, a number
of strongly-typed DataTables, BindingSources, and custom controls based on
the DataGridView. For this project, I found DataSets very useful. But I
must also admit that it is the first app I have worked on in which I found
them useful.
IOW, always use the best tool for the job. And of course, the only way to
know the answer to that one is to be familiar with all of the available
tools.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Show me your certification without works,
and I'll show my certification
*by* my works.
"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:[email protected]...
ASP.NET, I like to counter-balance as strongly as possible![]()
Steve said:It takes time to instantiate and fill a DataSet just to throw it away in a
few milliseconds when the page is done rendering.
Therefore, generally DataReaders are a more efficient solution in ASP.NET.
However, if you need to do some extra fancy data manipulation then there are
times when a DataSet would be a better choice.
One good use for DataSets in ASP.NET is when you need to cache some data.
DataReaders can't really be cached so a DataSet (or better yet a DataTable)
is a good choice in this situation.
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.