Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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 September 14th, 2007, 06:10 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default When to use objDataSource

I displayed data from three tables, in the Grid VIew. I used Collection Class and stored objects in the collection class. I did not used objectDataSource in GridView.
GridView.DataSource=collectionObject
GridView.DataBind
I wanted to use objDataSource. But could not find the way. I will appreciate it

 
Old September 15th, 2007, 05:52 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 there,

Is this related to this post: http://p2p.wrox.com/topic.asp?TOPIC_ID=64887

You have a tendency not to respond to any answers you receive to your initial request so I can't tell for sure whether you solved that problem or not. It would really be nice if you posted some follow up, letting people know whether their suggestions worked for you or not.

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old September 16th, 2007, 12:56 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar, Yes you are right, this question is regarding that post. I did not objDataSource. I did go to loop and used the collection object then returned the collection object and then assigned
the collection object
datagrid1.DataSource= myColllectionObject. It worked. You have pointed out good question about not responding the problems whether it worked or not. I will take care of it next time. Please answer to my question is this the right way. also how can you do by using objdata source

 
Old September 20th, 2007, 04:10 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Do you still need help with this?

Did you look at the ASP.NET quick starts regarding the ODS?
http://quickstarts.asp.net/QuickStar...atasource.aspx

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004









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