View Single Post
  #1 (permalink)  
Old September 3rd, 2006, 01:48 PM
rollercoaster rollercoaster is offline
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default More Errors in chapter 7.....

Book: Beginning ASP.NET 2.0 (VB) Edition-2006 - Chapter 7
---------------------------------------------------------

Repost from http://p2p.wrox.com/topic.asp?TOPIC_...01&whichpage=2

Well 1st of all many thanks to victorvictor for pointing out the errata till page 239.
It has been smooth cruising because of you till page 239.

And in reply to the topic of this thread i will say... say that again a million times..

Ok now to my fury...
I somehow fought my way thru to page 253. Here i got stuck bad.
I will have to say... Did the writer ask his/her plumber to write this 'try it out'?

Everything is fine till step 6.
At Page 253, Step 7 the author asks to copy gallery-all.asps to gallery.aspx. He forgets that at Page 237, Step 1, Line 1 he has already made the user create a gallery.aspx. Please change this to '[u]replace</u> the file gallery.aspx'

At Page 255, Step 9, Line 1 there is no 'DataSourceControl1' but a 'SQLDataSource1' as created in earlier try it outs.

Now the biggest problem.. The code that is on Pages 255 thru 257 is completely off the chart and [u]WRONG!!!</u>
It shows controls like Gridview and Detailsview which [u]do not exist</u> on this page 'gallery.aspx'

The correct code should be similer to

"<%@ Page Language="VB" MasterPageFile="~/site.master" AutoEventWireup="false"
         CodeFile="Gallery.aspx.vb" Inherits="Gallery" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:DropDownList ID="DropDownList1" runat="server"
            AutoPostBack="True" DataSourceID="SqlDataSource3"
            DataTextField="FixtureCombo" DataValueField="FixtureID">
    </asp:DropDownList>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server"
        ConnectionString="<%$ ConnectionStrings:WroxUnited %>"
        SelectCommand="SELECT [FixtureID], (Opponents + ' - ' + CONVERT(varchar,
        FixtureDate, 6)) As FixtureCombo FROM [Fixtures] ORDER BY [FixtureDate]">
    </asp:SqlDataSource>
    <br />

    <asp:DataList ID="DataList1" runat="server" DataKeyField="PictureID"
        DataSourceID="SqlDataSource1" RepeatColumns="3" RepeatDirection="Horizontal">
        <ItemTemplate>
            FixtureID:
            <asp:Label ID="FixtureIDLabel" runat="server" Text='<%# Eval("FixtureID") %>' />
            <br />
            <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("PictureURL", "~/Images/{0}") %>' />
            <br />
            <asp:Label ID="NotesLabel" runat="server" Text='<%# Eval("Notes") %>' /><br />
            Uploaded By Our Member:
            <asp:Label ID="UploadedByMemberNameLabel" runat="server"
            Text='<%# Eval("UploadedByMemberName") %>' /><br />
            <br />
            &nbsp;
        </ItemTemplate>
    </asp:DataList><asp:SqlDataSource ID="SqlDataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:WroxUnited %>"
        SelectCommand="SELECT [PictureID], [FixtureID], [UploadedByMemberName],
        [Notes], [PictureURL] FROM [Gallery] WHERE ([FixtureID] = @FixtureID)">
        <SelectParameters>
            <asp:ControlParameter ControlID="DropDownList1" DefaultValue="1" Name="FixtureID"
                PropertyName="SelectedValue" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
"
NOTE: This code is after executing step 10 on page 257.


And about the Screenshots. i wont even comment. they are completely out of sync.


------------------------------------------

Issue about the errata mentioned on this books' errata webpage and as pointed out by victor
"
__________________________
Page 222
Error in Code
Try It Out step 6, 2nd line of code near the end of the line:
WroxUnited

should be:
WroxUnitedConnectionString
__________________________
Page 223 Error in Code
Try It Out step 7, 2nd line of code near the end of the line:
WroxUnited

should be:
WroxUnitedConnectionString
_________________________
Page 223 Error in Code
under the heading "Details of the Connection string and Provider,"
in the first shaded code block, 3rd line:
WroxUnited

should be:
WroxUnitedConnectionString
__________________________
Page 237 Error in text
In step 3,the last sentence should say:
Use the WroxUnitedConnectionString as the connection for the data.
__________________________
"


This is wrong. If u change the name of the connection string to 'WroxUnitedConnectionString' the whole chapter goes out of sync. A lot of places after this page use the conneciton string 'WroxUnited' as written correctly in the book but presently considered errata.

[u]The error is in the screenshot(Figure 7-10) on the same page</u>. It should show 'WroxUnited' insted of 'WroxUnitedConnectionString' in the textbox. That would clear all the above errata in errata.
---------------------------------


Issue related to the below errata on errata webpage of this book
_________________________________
Page 237 Error in Text
Try it out step 1, the next to last line:
folder named Images

should be:
folder named MatchImages
_________________________________

The book is correct(although the language is complicated in this step) and u just put in the errara without checking? [u]How in-different can u get after digesting the readers money?</u>

There is a reference to the Images folder but it is not errata though completely unncecessary to the context. If at all u should have deleted the last sentence completely of step 1 on page 237.
----------------------------------

In the end I would like to say that may be the information above is incorrect in some or the other manner. So insted of just marking the errata please check thoroughly. There are many more of these DAMN errata but I do not have the time or energy to do the editors'/writer's work. I hope u forward this post in its completeness to the concerned people, and learn something on the way.

Regards
Vaibhav Garg

PS: Wrox should provide a updated pdf file for this chapter because there are too many errors. It would help future readers [u]very</u> much.