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 June 14th, 2012, 02:07 PM
Authorized User
 
Join Date: May 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 15, Try-It-Out pg570-573

Hello,
Should this Try-It-Out list all of the reviews? My code runs without errors, but i only get 18 of the total 24 reviews listed on the reviews by genre page.
thanks!
 
Old June 14th, 2012, 03:39 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,

If you followed the exercises, it should only list the authorized reviews because of the Where clause in the query:

Code:
 
var allReviews = from review in myEntities.Reviews
      where review.Authorized == true
      orderby review.CreateDateTime descending
      select review;
Repeater1.DataSource = allReviews;
Repeater1.DataBind();
Maybe the missing reviews are not authorized? You can check in the Management section.

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!
 
Old June 14th, 2012, 03:58 PM
Authorized User
 
Join Date: May 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That was it. thanks again.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Chapter 15 happyandstable BOOK: Beginning ASP.NET 4 : in C# and VB 3 March 7th, 2012 03:59 PM
Chapter 15 Try Femi Sonuga BOOK: Knight's Microsoft Business Intelligence 24-Hour Trainer 1 February 22nd, 2012 11:29 PM
chapter 15 manal_sag BOOK: Beginning ASP 3.0 2 March 13th, 2006 04:48 PM
chapter 15 manal_sag BOOK: Beginning ASP 3.0 0 April 22nd, 2005 02:23 PM
Chapter 15 help Lorenzo_G BOOK: Beginning ASP 3.0 1 November 27th, 2003 01:00 PM





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