Skip to Content
Beginning ASP.NET 3.5: In C# and VB
book

Beginning ASP.NET 3.5: In C# and VB

by Imar Spaanjaars
March 2008
Intermediate to advanced content levelIntermediate to advanced
766 pages
21h 15m
English
Wrox
Content preview from Beginning ASP.NET 3.5: In C# and VB

13.7. Exercises

  1. Imagine you have a page in the Reviews folder called MostRecent.aspx. This page shows the 10 reviews most recently added to the database. What would your LINQ query look like if you only wanted to show the review's Title property and the name of the genre it belongs to? You should use the Take method to limit the result set to 10. If you're having trouble writing the code to get the last reviews, look at the section titled "First, FirstOrDefault, Last, and LastOrDefault," which shows you how to get the last review in the database.

  2. What is the major benefit of the new ListView control over other data controls like GridView and Repeater?

  3. Currently the Default.aspx page from the PhotoAlbums folder just shows the thumbnails of the pictures. What would you need to do to display the full-size picture on its own page using a LINQ query?

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning ASP.NET 4: in C# and VB

Beginning ASP.NET 4: in C# and VB

Imar Spaanjaars
Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Professional ASP.NET 3.5 SP1 Edition: In C# and VB

Bill Evjen, Scott Hanselman, Devin Rader

Publisher Resources

ISBN: 9780470187593Purchase book