Anyone else had any trouble with this?
I forgot to properly debug stuff before, so today I decided to give this page a go. Immediately, i got greeted with errors.
The first error was because I somehow ended up putting the objDataSources in wrong. With that corrected, I still got errors, mostly related to the ddlCountries control.
I got an error stating that there still was somethign wrong with the odjDataSource of ddlCountries. I checked my code against the downloaded code, but it seemed similar.
I solved it by commenting out the SelectParameters of the odjDataSource in objAllCountries.
I then got an error stating that System.String does not have a value property. I solved that by removing the bold statements from the code below:
<asp:TemplateField HeaderText="Country" SortExpression="Country">
<asp:Label ID="lblCountry" runat="server" Text='<%# Eval
<asp:DropDownList ID="ddlCountries" runat="server"
SelectedValue='<%# Bind("Country") %>' Width="100%" />
What's weird is that this came straight from Marco's code, and the SelectParameter is even documented in the book. Yet, I have not seen this in the errata or found a link anywhere else on the forum...
Anyone experienced similar trouble?