Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2013, 02:22 PM
Banned
 
Join Date: May 2013
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
Unhappy Chapter 14 - Introducing Query Syntax

In the Try It Out for section 'Shaping Data with Anonymous Types,' item 5, I switch to design view and I'm not sure where to double-click. I'm not able to locate any code starting with 'Imports PlanetWroxModel...'. Here's my AllByGenre.aspx code:

Code:
<%@ Page Title="Reviews Grouped by Genre" Language="VB" MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="false" CodeFile="AllByGenre.aspx.vb" Inherits="Reviews_AllByGenre" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server"> 
    <asp:Repeater ID="Repeater1" runat="server">
        <ItemTemplate>
            <h3><asp:Literal ID="Literal1" runat="server" Text='<%# Eval("Name") %>'></asp:Literal></h3>
            <asp:BulletedList ID="ReviewList" runat="server" DataSource='<%# Eval("Reviews")%>' DataTextField="Title" DisplayMode="Text"></asp:BulletedList>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>
Thanks for your help!
 
Old July 7th, 2013, 02:32 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You should click anywhere on the greyed out / disabled area of the page around the controls you added in the first four steps. This sets up a standard Page_Load handler in the code as shown throughout the book.

The Imports statement isn't there yet; you need to add it either manually, or by using Ctrl+Dot on PlanetWroxEntities (after you manually typed that code) to bring in the namespace for you as explained in step 5.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
nudirection (July 7th, 2013)
 
Old July 7th, 2013, 02:47 PM
Banned
 
Join Date: May 2013
Posts: 8
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Augh! I missed the sneaky Ctrl + .

Thanks very much!





Similar Threads
Thread Thread Starter Forum Replies Last Post
ch. 14 exercise 3 question on hyperlink syntax Notso BOOK: Beginning ASP.NET 4 : in C# and VB 1 March 26th, 2012 02:49 PM
Chapter 6 - Introducing jQuery plugins ChrisC22 BOOK: Beginning ASP.NET Web Pages with WebMatrix 1 February 24th, 2012 03:24 PM
Syntax error in query. Incomplete query clause. dispickle ADO.NET 3 April 16th, 2004 01:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.