Errata for Microsoft® ASP.NET 3.5 Step by Step
Submit your own errata for this product.
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update
| Version |
Location |
Description |
Submitted By |
Date Submitted |
Date Corrected |
| Other Digital Version |
CD-ROM
|
Information on Running Sample Files with IIS
Some of the samples on the companion CD use IIS virtual directories, which must be mapped to the hard disk in the normal directory structure (not the Documents directory) for it to run successfully.
Installing the sample tree in the normal directory structure violates Microsoft's security standards. To run the samples through IIS, copy the samples files to a directory somewhere other than c:Documents and map an IIS Virtual directory to the sample tree
|
Microsoft Press |
May 06, 2010 |
|
| Printed |
Page 56
|
Linq not required
On page 56, a Note needs to be added before Step 6.
The Note should read:
Delete the following namespaces if they appear in your code in HelloWorld.aspx.cs:
using System.Linq;
using System.Xml.Linq;
|
Microsoft Press |
Jul 13, 2010 |
|
| Printed |
Page 83
|
Additional sentence needed in step 4
On page 83, an additional sentence is needed between the first and second sentences in step 4.
The new sentence should read:
"From the Tools menu select Choose Toolbox Items."
|
Microsoft Press |
May 06, 2010 |
|
| Printed |
Page 90
|
used in place of and
On page 90, the 7th and 8th lines of the code sample in step 3 contains a mismatched tag.
Change:
output.Write(@"<span style= 'font-style: bold;
font-size: x-large; color:Blue;'>");To:
output.Write("");
output.Write("");
|
Microsoft Press |
Jul 13, 2010 |
|
| Printed |
Page 97
|
Incorrect code sample
On page 97, the 10th - 16th lines of the code sample at the top of the page are incorrect.
Change:
output.Write("This is a palindrome: ");
output.RenderBeginTag(HtmlTextWriterTag.Font);
output.AddStyleAttribute(HtmlTextWriterStyle.Color, "blue");
output.RenderBeginTag(HtmlTextWriterTag.B);
output.Write(Text);
output.RenderEndTag(); // boldl
output.RenderEndTag(); // fontTo:
output.Write("This is not a palindrome: ");
output.RenderBeginTag(HtmlTextWriterTag.Font);
output.AddStyleAttribute(HtmlTextWriterStyle.Color, "red");
output.RenderBeginTag(HtmlTextWriterTag.B);
output.Write(Text);
output.RenderEndTag(); // bold
output.RenderEndTag(); // font
|
Microsoft Press |
May 06, 2010 |
|
| Printed |
Page 105
|
Code sample missing line
On page 105, the code sample in Step 2 for the PalindromeCheckerCompositeControl class is missing a line.
Change:
public class PalindromeCheckerCompositeControl :
CompositeControl
{
protected TextBox textboxPalindrome;
protected Button buttonCheckForPalindrome;
protected Label labelForTextBox;
protected LiteralControl literalcontrolPalindromeStatus;
public event EventHandler PalindromeFound;
...
// RenderContents method removed.
}
To:
public class PalindromeCheckerCompositeControl :
CompositeControl
{
protected TextBox textboxPalindrome;
protected Button buttonCheckForPalindrome;
protected Label labelForTextBox;
protected LiteralControl literalcontrolPalindromeStatus;
protected Table tablePalindromes;
public event EventHandler PalindromeFound;
...
// RenderContents method removed.
}
|
Microsoft Press |
Jul 13, 2010 |
|
| Printed |
Page 183
|
Quotation marks placed in incorrect location
On page 183, the third line of the code sample in Step 6 incorrectly places the opening quotation marks at the beginning of the line.
Change:
"Theme=Default"To:
Theme="Default"
|
Microsoft Press |
May 06, 2010 |
|
| Printed |
Page 273
|
"!" should be "~"
On page 273, the 16th line down in the code under Step 12 uses an invalid character.
Change:
To:
|
Microsoft Press |
Jul 13, 2010 |
|
| Printed |
Page 305
|
Instructions for creating UseDataList.aspx missing "using" statements
On page 305, below the first sentence of Step 1 there is instructions missing for database access.
Change:
"1. Create a new page on the SessionState site named UseDataList.aspx.
Add DataList to the page by copying the following code between the tags on the generated page. The DataList will display the elements in the .NET References table from the Access database we saw in Chapter 11."
To:
"1. Create a new page on the SessionState site named UseDataList.aspx.
Add using directives for database access in UseDataList.aspx.cs:
using System.Data.OleDb;
using System.Data.Common;Add DataList to the page by copying the following code between the tags on the generated page. The DataList will display the elements in the .NET References table from the Access database we saw in Chapter 11."
|
Microsoft Press |
May 06, 2010 |
|
| Printed |
Page 306
|
Code sample missing information
On page 306, the 3rd and 4th line of code from the top of the page is incomplete.
Change:
<asp:Button ID="SelectItem"
runat="server" Text="Select Item" />To:
|
Microsoft Press |
Jul 13, 2010 |
|
| Printed |
Page 308
|
CreateSelectedItemsData should be CreateSelectedItemsTable
On page 308, the first sentence of Step 4 contains an incorrect method name.
Change:
"Now add a method named CreateSelectedItemsData."
To:
"Now add a method named CreateSelectedItemsTable."
|
Microsoft Press |
May 06, 2010 |
|
| Printed |
Page 343
|
System.Web.Caching missing from code
On page 343, the 6th line of code up from the bottom of the page is missing a namespace.
Change:
CacheItemPriority.Default,To:
System.Web.Caching.CacheItemPriority.Default,
|
Microsoft Press |
Jul 13, 2010 |
|
| Printed |
Page 344
|
Step 6 is missing instructions
On page 344, Step 6 is missing instructions to run the page and click on the "Save Table as XML" before adding the code.
Change:
"6. Call the CacheWithFileDependency() within the Page_Load method."
To:
"6. Run the page and click on the "Save Table as XML" button to create the XML and
XSD files, then add code to Call the CacheWithFileDependency() within the Page_Load method."
Microsoft Press is committed to providing informative and accurate
books. All comments and corrections listed above are ready for
inclusion in future printings of this book. If you have a later printing
of this book, it may already contain most or all of the above corrections.
|
Microsoft Press |
May 06, 2010 |
|
|
| |