More on Chapter 7 DataList Try It Out errors
(1) Continuing with Chapter 7 (my 3rd day on it), I find that the Try It Out that begins on page 237 for the DataList Control has more error. I could be wrong on this, but I cannot find a WroxUnited.mdf database anywhere in all the downloaded files that contains more than one record.
In order to get my page to look like the one in the Try It Out, page 238, Figure 7-24,
I had to do surgery on the Gallery Table specifications and remove identity and primary key specifications for the PictureID field. Once that was accomplished, I could then add records, and save the database. Then running the page in the browser looks more like Figure 7-24. (Don't forget to put back the identity and primary key attributes to the Gallery Table. Else, FixtureID will be set equal to PictureID.)
(2) I'm not certain of this yet, because I still cannot continue to duplicate exactly what the book has, but I think Line 1 on page 237 should state that one should have under the root, a folder named Images with the gif and jpg files (as stated in the book) AND BELOW THAT a folder named MatchImages containing the aaronson.jpg file. At least that is what I have and at the point at which I am, it kinda works.
(3) Note that Figures 7-29 and 7-30 do not show the PictureID at all. Although they are required if one wants to get a result as shown in Figure 7-31. Further, Figures 7-29 and 7-30 show Fixture ID above the image control whereas Figure 7-31 shows it below the image.
(4) Page 241. Line 13. This line says to "Delete the text and label that refers to the PictureURL." but I found I was unable to do that within the template. Attempting to do so, I found that it won't let me, and states that the Text property is databound. I had to go to the Properties table for the control and do deletes there. Would have been nice to say up front how one can do the required deleting.