Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 May 29th, 2012, 01:43 PM
Friend of Wrox
 
Join Date: Mar 2011
Posts: 126
Thanks: 39
Thanked 2 Times in 2 Posts
Default SqlDataSource Control - p.473

Hi Imar,

I had a question about the use of the SqlDataSource control. I guess one of the benefits is that it allows you to quickly create database driven pages.

But like you said on p.473, many developers don't like or use it. So when is it primarily used for real world applications?

My guess... Is it primarily used for creating quick prototypes for an application for demo purposes and then replaced by the ObjectDataSource control so that you can take advantage of using 3-tier architecture and truly separate the presentation from the processing?

Thank you.

Tulsi
 
Old May 30th, 2012, 04:57 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Tulsi,

I guess the answer is: it all depends. If you build professional sites as your job, you probably want to stay away from the SqlDataSource controls as they are hard to maintain over time.

However, the alternatives come with a price: learning n-layered design is not an easy undertaking and may take some time to master. For some articles on N-layered design, take a look here:

http://imar.spaanjaars.com/416/build...pnet-20-part-1
http://imar.spaanjaars.com/476/n-lay...l-introduction

If you're building a small site for yourself, or say, for the local soccer club, the SqlDataSourcemight be just what you're looking for: easy to understand and use. If you accept its long term maintenance issues, it might be a good alternative.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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:
Tulsi (June 6th, 2012)





Similar Threads
Thread Thread Starter Forum Replies Last Post
SqlDataSource ControlParameter Cannot Find Control AspNetGuy ASP.NET 3.5 Basics 1 June 25th, 2008 07:44 AM
Need help with SqlDataSource control binici ASP.NET 2.0 Basics 1 February 5th, 2007 05:32 PM
SqlDataSource control error binici ASP.NET 2.0 Basics 1 January 19th, 2007 08:02 PM





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