Wrox Programmer Forums
BOOK: Beginning ASP.NET Web Pages with WebMatrix
This is the forum to discuss the Wrox book Beginning ASP.NET Web Pages with WebMatrix by Mike Brind, Imar Spaanjaars ; ISBN: 978-1-1180-5048-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Web Pages with WebMatrix 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 February 12th, 2012, 05:38 AM
Authorized User
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
Default Chapter 8: Gallery

Hi Imar.
I have built the Gallery site according to the book. It almost works as described. The difference is, that I only get the first thumbnail. Is it possible that something is wrong with the tinycarousel.css:

<div id="slider-code"> <!-- don´t use id="slider-code" to get all thumbnails -->
<a class="buttons prev" href="#">left</a>
<div class="viewport">
<ul class="overview">
@foreach(var file in files){
<a class="thumb" href="Uploads/@folderName/@file.Replace("_thumb", "")">
<img src="Uploads/@folderName/@file" alt=""/>

If I omit the id="slider-code", the I get all thumbnails shown, albeit not horizontally ordered but stacked vertically.

Another question: on page 212 in the book it says: ... copy the images (from the Upload folder) to your newly created Images folder. As far as I can see from the code in Gallery.cshtml, the images are fetched from the Uploads folder. In any case, I don´t copy the images and it does not seem to matter.
Gudni G. Sigurdsson
Old February 13th, 2012, 05:20 PM
Wrox Author
Join Date: Dec 2011
Posts: 57
Thanks: 1
Thanked 19 Times in 19 Posts

There may be a problem with the jQuery file that's part of the download for this chapter. When I replace it with jQuery 1.7.1, it works as expected. Prior to that, I got the same problems that you described.

The CSS file expects the button images to be in the Images folder, which is why step 5 instructs you to put them there. Step 6 contains the instructions to modify the CSS file to find the button images in the Images folder.
The Following User Says Thank You to Mike Brind For This Useful Post:
Gudni (February 16th, 2012)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 - Gallery.setAdapter() androider BOOK: Beginning Android Application Development 0 June 29th, 2011 12:16 PM
Video gallery varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 November 3rd, 2009 05:52 AM
Video gallery varunbwj ASP.NET 3.5 Basics 0 November 3rd, 2009 05:45 AM
Image Gallery Help morpheus Javascript How-To 3 February 20th, 2006 07:45 PM
gallery problems surethg Beginning PHP 0 November 14th, 2004 12:16 PM

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