Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 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: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 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

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.