Errata

Programming ASP.NET

Errata for Programming ASP.NET

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.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 59
last line

"...see http://www.oreilly.net..."
should be:
"...see http://www.oreilly.com..."

Anonymous   
Printed Page 108
Table 5-2, ReadOnly entry

Instead of "If true, content cannot be changed by user. Default is false, meaning
content can still be changed programmatically." it should be something like "If true,
content cannot be changed by user, though it can still be changed programmatically.
Default is false."

Anonymous   
Printed Page 138-141
Examples 5-21 and 5-22

Changes are not indicated. These should be in bold (in both C# and VB.NET versions):

-- the method cblGenre_SelectedIndexChanged()

-- the attribute onSelectedIndexChanged="cblGenre_SelectedIndexChanged" on the
CheckBoxList element

-- the element for label lblGenre

Anonymous   
Printed Page 142
Figure 5-12

The screen shot doesn't match the code. Only the ListItem's Value is
displayed, not "Value - Text" the way the code reads.

Anonymous   
Printed Page 174
Table 5-15

Two of the descriptions contain spurious references to table cells.

For HorizontalAlign, instead of
"...the contents of all the cells in the row."
it should be
"...the contents of the panel."

For Wrap, instead of
"...the contents of the cell wraps."
it should be
"...the content of the panel wraps."

Anonymous   
Printed Page 211
Example 9-13

Example 9-13 will not compile unless the following Imports statement is included
before or after the "Imports System" statement :
Imports System.Collections

Anonymous   
Printed Page 224
Output of Example 9-17 under the heading "Contents of the test array"

The output under the "Contents of the test array" should
read :
100
200
300
.
.
1000

and NOT as shown in the book.

Since the code that produces this output is :
'populate the array
For i = 1 to arraySize - 1
testArray(i) = i * 100
Nex i

In the above code, i starts from 1 and goes on till 10 (arraysize is 11, therefore
arraySize - 1 is 10) and therefore the corresponding output should start from 100 and
go on till 1000 with an increment of 100.

Anonymous   
Printed Page 231
3rd paragraph of text

The beginning of the paragraph appears to be missing. It starts with a space:
" and Example 5-48 then test to see if the selected date is New Year's day."

Anonymous   
Printed Page 263
1st paragraph

The line break should come after the line continuation character (the underscore).
The first code snippet should either put the underscore at the end of the line, or
break it as apparently intended:

dim arTest( ) as string = _
CType(Application("arBooks"), string( ))

The second code snippet doesn't need an underscore at all, since it fits on one line.
It should be

dim arTest( ) as string = Application("arBooks")

Anonymous   
Printed Page 279
paragraph numbered 3

3. PreRender
This is the phase just before the output is rendered. CreateChildControls is called,
if necessary, to create and initialize server controls in the control tree.
Modifications are made via the PreRender event, using the OnPreRender
method.

This sentence does not match the figure 6-5 on page 278 as there the
CreateChildControl method is called from the OnLoad event.

Anonymous   
Printed Page 315
paragraph above Figure 7-18

Incomplete sentence: "If you edit your web.config file to look like Example 7-9, then
put CustomErrorPage.htm in your application virtual root and run the program."

Anonymous   
Printed Page 348
last code snipper (in C#)

e.IsValid always appears to be true at the start of the validation method. So you
must set it to false to trigger a validation error. As written, no validation error
is ever triggered. (You have to use a "downlevel" browser to test this, or else the
client-side validation prevents the server-side validation to occur. Sadly, it
appears that Mozilla is considered "downlevel" by Microsoft -- so typical -- and
that's how I noticed this.)

I would suggest adding:

e.IsValid = false;

just before the try block.

Anonymous   
Printed Page 478
Using a DataReader and onwards

Throughout the book the explanation of the code using C# and VB.net
has increasingly leaned towards C# culminating in me being completely confused up to
page 519. The back cover says that the book is explained equally in C# and VB.net
????

From page 478 to 512 there is detailed description of C# coding
Using a Datareader - pg 478
DataView - pg 480
Creating Data Relations - pg - 481
Creating Data Objects by Hand - 497
Creating a DataTable by Hand (3 lines of VB support here)
Creating Primary Keys - pg 503
Creating Foreign Keys - pg 504
Creating Data Relations - 505

do i skip these pages? - i think they may be pretty important

Even the source code downloaded from LibertyAssociates is heavily C# biased for
chapter 11.

Anonymous   
Printed Page 649
VB.NET Code

The code includes Version where the datalist does not use version at all.

Anonymous   
Printed Page 739
just under the figure

The syntax for TransactionOption is as follows for VB.NET:
<WebMethod(TransactionOption:=TransactionOption.RequiresNew)>
For C#, it is as follows:
[WebMethod(Description=TransactionOption.RequiresNew)]"

Should read:

"The syntax for TransactionOption is as follows for VB.NET:
<WebMethod(TransactionOption:=TransactionOption.RequiresNew)>
For C#, it is as follows:
[WebMethod(TransactionOption=TransactionOption.RequiresNew)]"

Anonymous   
Printed Page 924
3rd paragraph after appSettings sub-heading

The error is printed twice: once in the first sentence of the third paragraph, and
again in the code section above the third paragraph (after the appSettings sub-
heading).

The error: System.Configuration.NameValueSectionHandler

The correction: System.Configuration.NameValueFileSectionHandler

"File" is part of the class name and should be printed between "Value" and "Section"
- it is printed correctly on page 922, which is an excerpt of machine.config.

Anonymous