Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 21st, 2009, 05:08 AM
Posts: n/a
Default Do we really need ASP.NET xyzDataSource controls?

I am from C# Winforms background and recently switched to ASP.NET in c#.

After working with Winforms applications along with BusinessObjects, O/R Mapping frameworks, and logical layering techniques for months, I am just wondering, should we actually use ASP.NET ubiquitous xyzDataSource controls?

And we have our specific class-structures like:

class MyClass : IMyClass, IPersistant
public int ID {get;set}
public int SaveOrUpdate(){}//returns the ID
public static MyClass Get(int id){}
public static IEnumerable<MyClass> Get(){}
public bool Delete(){}

And also we have our own code generators for this type of classes.

And also don't xyzDataSource controls only applicable for XP/Agile projects?

Last edited by edurazee; December 21st, 2009 at 05:11 AM..
Old December 21st, 2009, 03:43 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

It all depends. The SqlDataSource is often considered not the best option as you end up with spaghetti code with T-SQL all over the place. However, the ObjectDataSource is really nice and can be used in cleanly separated, N-Tier applications. I wrote about those in-depth in this article series: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=476


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Standard ASP.NET Controls? ocn BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 1 July 1st, 2009 12:10 PM
Custom Controls in Asp.Net 3.5 Praveenkumar_dsrc ASP.NET 3.5 Professionals 1 February 5th, 2009 09:57 AM
Activex controls in asp.net flaco ASP.NET 1.0 and 1.1 Basics 5 April 18th, 2005 08:32 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.