Do you think you've discovered an error in this book?
Please check the list of errata below to see if we've already addressed the error. If not,
please submit the error via our
Errata Form.
We will attempt to verify your error; if you're right, we will post a correction below.
| Chapter | Page | Details | Date | Print Run |
|
XXVIII |
Error in Text but look for a feature like User Folder Names
should be:
but look for a feature like Use Folder Names
|
07/15/2008 |
|
| 2 |
35 |
Error in Text Last list in the "...this chapter examines:", reads:
"How to use the designer tools to created formatted web pages"
should read:
"How to use the designer tools to create formatted web pages" |
07/08/2008 |
|
| 2 |
57 |
Error in Text and not the entire table with four rows
Should be:
and not the entire table with three rows
|
07/15/2008 |
|
|
88 |
Error in Text ?blue?
should be:
?green?
|
07/15/2008 |
|
| 4 |
120 |
Error in Code interpretation step 6, 3rd shaded line the part that says:
lstFavoriteLanguage
Please note that the first character is a lower case L, not the number one. The code is correct as is with that character as a lower case L.
|
04/03/08 |
|
| 4 |
133 |
Error in Text end of 2nd paragraph:
"which controls attribute to?
Should be:
"which controls contribute to"
|
09/22/08 |
|
|
162 |
Error in Text single sentence paragraph near the middle of the page:
The C# example doesn't extract 1 from the Length, though.
Should be:
The C# example doesn't subtract 1 from the Length, though.
|
09/07/08 |
|
|
188 |
Error in Text Top of the page:
The default is Private which hides the class by default.
should be:
The default is internal (Friend in VB.NET) which makes the class visible to other classes in the same assembly (a.DLL) but hides it from code outside the assembly)
|
06/12/2008 |
|
| 6 |
197 |
Error in Code To match figure 6-2, the code for step 3, line 3:
<div id="Header"><a class="HeaderLink" href="~/" runat="server"></a></div>
should be:
<div id="Header"><a class="HeaderLink" href="~/" runat="server">Header Goes Here</a></div>
|
04/10/2008 |
|
| 6 |
202 |
Typo first paragraph under Nested Master Pages, last sentence says:
for nested maser pages
should be:
for nested master pages
|
09/23/08 |
|
|
241 |
Error in Text third sentence from the end:
"The Menu on the right displays Home only when the page first loads." (This implies that Home is only displayed when the page first loads, but not later.)
should be:
"When the page first loads, the Menu on the right only displays Home." |
06/13/2008 |
|
|
258 |
Typo Second to last sentence of the last paragraph:
directly go the content
should be:
directly go to the content
|
09/10/08 |
|
| 8 |
271 |
Error in Step first line of step #10:
...Wrap the Image in a standard element and set its src attribute...
should be:
...Wrap the Image in a standard element and set its href attribute...
|
08/25/08 |
|
| 8 |
275 |
Error in Text Chapter 8, page 275, section "How It Works," second paragraph, first sentence, first clause:
When you add the control registration to the master page
Should be:
When you add the control registration to the web.config file
|
06/24/2008 |
|
|
276 |
Error in Code The code says to add code to the Page_Load event. However, that should be Page_Init to avoid problems in more advanced scenarios. So this code:
VB.NET
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles Me.Load
Me.ID = "Master"
C#
protected void Page_Load(object sender, EventArgs e) {
this.ID = "Master";
should be:
VB.NET
Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles Me.Init
Me.ID = "Master"
C#
protected void Page_Init(object sender, EventArgs e) {
this.ID = "Master";
For more info, please the following Blog post on the author's web site:
http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=469
|
09/11/08 |
|
|
299 |
Error in Text Chapter 9, page 299, section "Extending the Contact Form," item #2, first sentence:
Save button
Should be:
Send button
|
06/26/2008 |
|
|
311 |
Error in Text This allows you, for example, to create a MailAddress instance like this:
should be:
This allows you, for example, to create a MailMessage instance like this:
|
06/12/2008 |
|
|
357 |
Error in Text You should use the App_Data folder only for data that is used at server
should be
You should use the App_Data folder only for data that is used at the server
|
11/02/08 |
|
|
372 |
Error in Table Page 372, the table with data types contains a row for the varchar/nvarchar datatype. The Description column for that row should be changed from:
=======================================
Used to store text with a variable length.
The nchar stores the data in Unicode format, which allows you to store data for many foreign languages.
=======================================
to
=======================================
Used to store text with a variable length.
The nvarchar stores the data in Unicode format, which allows you to store data for many foreign languages.
=======================================
|
07/09/2008 |
|
|
430-remainder |
Error in Code Error on 430 and through the remainder of the book:
On non English versions of Visual Web Developer (VWD) or Visual Studio (VS) 2008 you may get unexpected results when working with the LINQ to SQL classes designer. The problem lies in the way the designer pluralizes tables names in the designer. For example, when you drag a table called Review on the designer, VWD / VS will automatically expose a Reviews property on the data context so you can access it like this:
VB.NET
Using myDataContext As New PlanetWroxDataContext()
Dim allReviews = From review In myDataContext.Reviews _
Where review.Authorized = True _
Order By review.CreateDateTime Descending _
Select review End Using
C#
using (PlanetWroxDataContext myDataContext = new PlanetWroxDataContext()) {
var allReviews = from review in myDataContext.Reviews
where review.Authorized == true
orderby review.CreateDateTime descending
select review; }
Notice how the myDataContext property has a Reviews collection
(plural) even though the original table was called Review in singular form. This only works on English versions of VWD / VS.
On other languages, the table won't be pluralized automatically. In that case, the PlanetWroxDataContext has a Review property. This means you'll need to adjust code examples as the one on page 430 to use the Review collection:
VB.NET
Using myDataContext As New PlanetWroxDataContext()
Dim allReviews = From review In myDataContext.Review _
Where review.Authorized = True _
Order By review.CreateDateTime Descending _
Select review End Using
C#
using (PlanetWroxDataContext myDataContext = new PlanetWroxDataContext()) {
var allReviews = from review in myDataContext.Review
where review.Authorized == true
orderby review.CreateDateTime descending
select review; }
The same problem may be present in other LINQ to SQL code examples in the book.
Instead of adjusting the code, you could also rename the Review property in the code. You'll find the property in the PlanetWrox.designer.cs class:
public System.Data.Linq.Table Review {
get
{
return this.GetTable();
}
}
|
09/11/08 |
|
|
431 |
Error in Text third paragraph, fourth line, fourth word:
"off"
should be:
"of"
|
06/27/2008 |
|
| 14 |
493 |
Error in Text On Top of Page:
GridView1_RowRowDataBound
should be:
GridView1_RowDataBound
|
09/29/08 |
|
| 15 |
528 |
Error in Text last two sentences:
"... then press Ctrl+V to paste your LoginView,"
should be:
"... then press Ctrl+V to paste the Login control into your LoginView."
|
06/26/2008 |
|
|
529 |
Error in Text section 5, second sentence:
"The LoginView should be placed inside the AnonymousTemplate..."
should be:
"The Login control should be placed inside the AnonymousTemplate..."
|
06/26/2008 |
|
|
550 |
Error in Text second paragraph, second and third sentences:
"The run time then found the allow element that grants access to the Managers role and immediately lets you in. The final rule that blocks access to all other users is never even checked anymore."
should be:
"The runtime then found the allow element that grants access to the Managers role and immediately let you in. The final rule that blocks access to all other users was not even checked."
|
06/24/2008 |
|
|
558 |
Error in Text "run time"
should be:
"runtime" |
06/24/2008 |
|
|
561 |
Error in Text "Chapter 5 discusses how to use generics to store role names using a generics list of strings."
should be:
"Chapter 5 discusses how to use generics to store role names using a generic list of strings." |
06/24/2008 |
|
|
678 |
Error in Excercise 3 Solution Code Exercise 3 solution code is incorrect.
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='<%# "PictureDetails.aspx?Id=" + Eval("Id") %>'>
Should be:
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='<%# "PictureDetails.aspx?Id=" + Eval("Id").ToString() %>'>
|
09/08/08 |
|