Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
Reply With Quote
  #2 (permalink)  
Old April 15th, 2011, 03:09 AM
Imar's Avatar
Wrox Author
Points: 71,921, Level: 100
Points: 71,921, Level: 100 Points: 71,921, Level: 100 Points: 71,921, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,055
Thanks: 80
Thanked 1,585 Times in 1,561 Posts
Default

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.

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!
Reply With Quote
  #3 (permalink)  
Old May 16th, 2011, 10:43 PM
Registered User
 
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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}.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.