Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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
  #1 (permalink)  
Old July 26th, 2006, 08:28 AM
Authorized User
 
Join Date: Mar 2006
Location: Mumbai, Maharastra, India.
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default Object datasource VS DataSource

Dear Imar,

I would like a little clarification on this point. I am totally
aware about BLL/DAL and its advantages over dataSource as explained
in book.I am also aware about 3 tier advantages too.

But since Datasouce control makes it more easy than ObjectDataSource,
i was just thinking of using Datasource asp classic way ) instead of Objectdata Source.

What could be the side implications, if i have opted for this,
till i gain a mastery in ObjectDataSource.

I am planning to run few chapters with DatasOurceControl initaially. Pl. guide me.

Thanks

SoftMind.

  #2 (permalink)  
Old July 26th, 2006, 12:48 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

When you say DataSource, what DataSource are you referring to? There are many, including the SqlDataSource, XmlDataSource and the ObjectDataSource that you mentioned.

It all depends what you want to accomplish. If you have straight forward database data, a SqlDataSource is fine. Like you said, it breaks good three-tier design, but for many sites this isn't a problem. However, you should realize it's not that easy to move existing code from a SqlDataSource to an ObjectDataSource, so, if time and knowledge permits, you may want to start using an ObjectDataSource right away.

Personally, I use SqlDataSource controls for quick and dirty applications (prototypes, demos) and for simple data binding scenarios like drop down lists. But, you'll find they work in more complicated CRUD scenarios (Create, Read, Update and Delete) as well.
Quote:
quote:I am planning to run few chapters with DatasOurceControl initaially
Not sure what you mean with this...

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
  #3 (permalink)  
Old July 26th, 2006, 10:07 PM
Authorized User
 
Join Date: Mar 2006
Location: Mumbai, Maharastra, India.
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When i wa s referring Data Source, i mean SQL DataSource.

All your chapters are based on Object Data Source with BLL and DAL.

I am planning to avoid ObjectDataSource for some time and work on your chapters like 4, 7 and 9 the easier ones with SQLDataSourceControl with in built facility of Select, Insert, Delete and Update commands.

Thanks

  #4 (permalink)  
Old July 27th, 2006, 03:29 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, sounds like a good plan. This way you can focus on understanding other stuff first. Then when you're ready, you can dig a little deeper in three-tier design using the ObjectDataSource controls...

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
  #5 (permalink)  
Old July 27th, 2006, 10:44 PM
Authorized User
 
Join Date: Mar 2006
Location: Mumbai, Maharastra, India.
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for motivating me, to start with.

SoftMind



Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter about object datasource and gridview? asptwodev BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 November 2nd, 2007 12:53 PM
DataSource suhas_feb BOOK: Professional Jakarta Struts 1 June 19th, 2007 09:46 PM
GridView DataSource Abbas C# 2005 0 November 28th, 2006 02:54 PM
DataSource, Oracle... mali djuro JSP Basics 0 October 20th, 2003 07:51 AM
DataSource keseln J2EE 1 June 8th, 2003 08:45 PM





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