Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 October 14th, 2009, 04:14 AM
Authorized User
 
Join Date: Oct 2009
Posts: 16
Thanks: 8
Thanked 0 Times in 0 Posts
Default A better explanation

Hi Imar,

Sorry for my poor explanation, sometimes I struggle to get my thoughts on to paper.

I have just done the section for the ViewDetails.aspx which solves a lot of my problems I was having with the details view i mentioned above.

Would I be able to bind a list view to the ReviewID label so that all the associated comments(from the comments table) for a review would be displayed in the list view.

I have done done the database diagram and dbml linq diagram, so the comments information is available

Hope this make more sense


Thanks in advance

Hippo
 
Old October 14th, 2009, 03:19 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,

Yes, you can do that, but you can't bind directly to an ID. Here's what should work:

1. Add a new ListView

2. Hook it up to an LinqDataSource

3. Create a QueryString parameter in the LinqDataSource that gets its value from the ReviewId

4. Use the ReviewId in the Where clause of the data source to limit comments to those of a specific Review.

The Linq or other data chapters should have more examples of this

Does this help?

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:
bigyawn_hippo (October 14th, 2009)
 
Old October 14th, 2009, 04:46 PM
Authorized User
 
Join Date: Oct 2009
Posts: 16
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Thanks for your advice it was most helpfull

Hippo





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get access to value in LINQ query result StevenF ASP.NET 3.5 Basics 6 May 12th, 2009 05:46 AM
LINQ query \ LAMBDA expression - complex requirement sumitshah4u .NET Framework 3.5 0 March 16th, 2009 04:36 AM
Binding IEnumerable result set of a LINQ query prakashbpl .NET Framework 3.5 0 November 11th, 2008 04:41 AM
Webshop modification El Presidente BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 21 December 6th, 2006 03:14 PM
Webshop Modification saf BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 November 3rd, 2006 07:49 PM





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