View Single Post
  #5 (permalink)  
Old January 2nd, 2011, 09:03 AM
skachy skachy is offline
Registered User
 
Join Date: Dec 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Ah, so maybe the pictures are never bound. Could this be it:

Code:
 
"~/ManagePhotoAlbum.aspx?PhotAlbumId={0}"
Notice how you have Phot instead of Photo. If you use PhotoAlbumId in the target page, the album ID isn't passed correctly to the target page.

Hope this helps. You only posted a small bit of your code so I can only make some guesses. If this doesn't solve it, please post the complete code for the ManagePhotoAlbum.aspx page and the full URL you see in the address bar of the browser.

Imar
Thanks a lot Imar.
As you correctly pointed out. The problem was in PhotoAlbum/Default.aspx. I was missing a "o" after "t" in PhotoAlbumId={0}

Code:
EditLink.NavigateUrl = string.Format("~/ManagePhotoAlbum.aspx?PhotoAlbumId={0}", DropDownList1.SelectedValue);
It works great now. Thanks again

Suhail
Reply With Quote