|
Subject:
|
More Errors in chapter 7.....
|
|
Posted By:
|
rollercoaster
|
Post Date:
|
9/3/2006 1:48:43 PM
|
Book: Beginning ASP.NET 2.0 (VB) Edition-2006 - Chapter 7 ---------------------------------------------------------
Repost from http://p2p.wrox.com/topic.asp?TOPIC_ID=39501&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 'replace 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 WRONG!!! It shows controls like Gridview and Detailsview which do not exist 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 /> </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.
The error is in the screenshot(Figure 7-10) on the same page. 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? How in-different can u get after digesting the readers money?
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 very much.
|
|
Reply By:
|
tbroom
|
Reply Date:
|
9/8/2006 12:48:49 PM
|
There also needs to be a new down load for this chapter which I have been waiting for since I put in a notification (08/30/2006) that this chapter 07 had problems. I have no heard back from neither Wrox nor Wiley on this issue it must not be issue for them.
|
|
Reply By:
|
jminatel
|
Reply Date:
|
9/8/2006 2:13:47 PM
|
I'm waiting for the author to work through these issues and respond.
Jim Minatel Senior Acquisitions Editor Wiley Technology Publishing WROX Press Blog: http://wroxblog.typepad.com/ Jim's Book of the week: No book this week - Donate to the Red Cross!
|
|
Reply By:
|
rollercoaster
|
Reply Date:
|
9/27/2006 10:37:37 AM
|
keep waiting....
|
|
Reply By:
|
DanM
|
Reply Date:
|
10/3/2006 2:36:24 AM
|
Hiya,
I've got the permission from Jim to act in the authors stead, so I'll get this errata and hopefully those in chapter 8 updated in the next few days. I'll try and get the C7 and C8 downloads updated as well or else I'll put them up on my own site in case you need them.
Dan
Dan Maharry Read the feed at http://feeds.feedburner.com/dansarchive
|
|
Reply By:
|
DanM
|
Reply Date:
|
10/3/2006 3:49:19 PM
|
Hi there,
I've compiled a complete list of all the errata for Chapter 7 in the VB Edition of the book, and submitted them along with new start and end code for Chapter 7 to Wrox for inclusion in the errata pages \ downloads. For those who would rather not wait, you can download the list and code from http://www.hmobius.com/downloads/C7VBErrata.zip. The file is just over 1MB.
Thanks, Dan
Dan Maharry Read the feed at http://feeds.feedburner.com/dansarchive
|