Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
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 April 14th, 2011, 11:16 AM
Registered User
Join Date: Dec 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy ManagePhotoAlbum.aspx not showing any items

I'm in chapter 17 and just finished the Try It Out exercise on page 613. I'm finding now that when I open an album that has items in it (pictures, etc.) and then click the Edit Photo Album link it never returns any items - whether I'm signed in or not. I'm sure this page was working correctly back when I created it in chapter 14 (or whatever chapter it was created in). The querystring is passing a valid album ID and I've found matching entries in the database. I've copied and pasted the downloaded code into both ManagePhotoAlbum.aspx and ManagePhotoAlbum.aspx.vb but it doesn't change anything. There must be something in the DataEntity setup that is causing the problem but I can't find it. Any ideas?

Note: this is the main reason I've never liked bound controls. There's no code to examine and step through to figure out why something isn't working.
Old April 15th, 2011, 03:09 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

Can you post the relevant code for the pages and the connection string for the database?

You *can* hook into these controls and look what they do. You can subscribe to various events like OnSelecting and then look at what they are selecting. In addition, you could watch the database to see what gets selected. FInally, you can debug the .NET Framework code if you wish: http://weblogs.asp.net/scottgu/archi...available.aspx

Anyway, could it be a permissions or a connectivity issue? It seems strange to have this behavior when the code hasn't changed.

Imar Spaanjaars
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 May 16th, 2011, 10:43 PM
Registered User
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

I had this same issue. My querystring names didn't match. For the EditLink.NavigateUrl string, I had PhotoAlbum={0} but it should have been PhotoAlbumId={0}.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot redirect to ManagePhotoAlbum GeeTee991100 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 6 December 12th, 2010 06:44 AM
puntual.aspx not showing time SOLUTION claybox BOOK: Beginning ASP.NET 1.0 0 August 15th, 2005 01:28 PM
displaying 6 items only having 20 items Lakshmi KS VB Components 1 February 17th, 2004 10:34 AM
HowTo Pass Form data from Page1.aspx to Page2.aspx dati ASP.NET 1.0 and 1.1 Basics 6 January 27th, 2004 06:57 AM

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