object reference not set to instance of an object
Imar,
I did everything that you suggested including copying and pasting the code and I still get the same problem.
The only thing that I saw that in the database explorer the picture table as you correctly identified was "id" not "Id".
So I changed it to Id after I copied and pasted the source code.
When I first wrote to you I included a small piece of code which is as follows
PhotoAlbum myPhotoAlbum = (PhotoAlbum)e.Result;
Line 17: Response.Redirect(string.Format("ManagePhotoAlbum. aspx?PhotoAlbumId=(0)",
Line 18: myPhotoAlbum.id.ToString()));
The name of the file ManagephotoAlbum is spelt correctly so I am wondering
what the significance of the PhotoAlbumId=(0)",
code is? I cannot see a PhotoAlbumId variable in the database. What does =(0) mean?
I hope this is of help
Thanks
Thomas
Line 19: }
|