Now on Ch 17 - had a break after last issue! I have made the changes to default.aspx in the Reviews folder and everything builds OK with no errors. I view the page in IE, after logging in, and it displays everything as it should. I hover over one of the hyperlinks and the url looks correct but when I click it I get an 404 error - page not found.
I then went back to the All Reviews page and the hyperlinks look the same and in this page they work fine. I've compared the HTML in both pages and the <asp:hyperlink> code looks identical. So, I'm confused.
HMTL from default.aspx (Reviews folder):
HTML Code:
<asp:Repeater ID="GenreRepeater" runat="server">
<HeaderTemplate>
<p>Below you will find a list with reviews for your favourite music genres.</p>
</HeaderTemplate>
<ItemTemplate>
<h3><asp:Literal ID="Literal1" runat="server" Text= '<%# Eval("Name")%>'></asp:Literal></h3>
<asp:Repeater ID="ReviewRepeater" runat="server" DataSource='<%# Eval("Reviews")%>' ItemType="PlanetWroxModel.Review">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Item.Title%>' NavigateUrl='<%# "ViewDetails.apsx?ReviewId=" + Item.Id.ToString()%>'>
</asp:HyperLink>
</ItemTemplate>
<SeparatorTemplate>
<br />
</SeparatorTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:Repeater>
Hyperlink HTML from ALL.aspx:
HTML Code:
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "ViewDetails.aspx?ReviewId=" + Item.Id.ToString() %>' Text='<%# Item.Title %>'></asp:HyperLink>
Any thoughts? I can't spot any difference between these two. Perhaps something is wrong elsewhere but I haven't found it.
Many thanks.
Paul