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.
Version |
Location |
Description |
Submitted By |
Date submitted |
Date corrected |
Printed |
Page 5
Bottom of page, in C# example |
This is in the "Boxing and unboxing" section of the book. The second line of the C#
example:
object myObj = myInt; // value of myInt is boxed into myObject
NOW READS:
object myObject = myInt; // value of myInt is boxed into myObject
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 5
3rd paragraph |
C# code example:
myFloatClass.myFloat = 3.1415
should be:
myInstance.myFloat = 3.1415
|
Anonymous |
|
|
Printed |
Page 39
10th paragraph |
The text 'Assuming a class name of "baz" for the custom control, the
corresponding tag for an instance of the control is shown.'
The word "baz" NOW READS "bar".
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 77
Example 5-3 |
there was an extra space in
'Inherits="aspnetian. ProgControl"'
This has BEEN CORRECTED.
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 111
Code example near top of page, C# version of Button_Command() |
"switch(cs.CommandName)"
should be:
"switch(ce.CommandName)"
|
Anonymous |
|
|
Printed |
Page 177
code example |
One line was missing from the code in the book.
The line is -
<alternatingitemstyle backcolor="silver"/>
This line HAS BEEN ADDED so that the complete code NOW READS:
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<html>
<head>
<title>Delete Example</title>
<script runat="server">
Dim Titles As New DataSet()
Dim TitlesAdpt As New SqlDataAdapter()
Sub Page_Load(Sender As Object, e As EventArgs)
If Not IsPostBack Then
GetTitleData()
BindGrid()
End If
End Sub
Sub BindGrid()
TitleGrid.DataSource = Titles.Tables(0).DefaultView
TitleGrid.DataBind()
End Sub
Sub GetTitleData()
Dim ConnStr As String = "Data Source=(local)NetSDK;" & _
"Initial Catalog=Pubs;Trusted_Connection=True;"
Dim SQL As String = "SELECT * FROM titles"
Dim PubsConn As New SqlConnection(ConnStr)
Dim TitlesCmd As New SqlCommand(SQL, PubsConn)
TitlesAdpt.SelectCommand = TitlesCmd
Dim TitlesCB As New SqlCommandBuilder(TitlesAdpt)
' No need to open or close connection,
' since the SqlDataAdapter will do this automatically.
TitlesAdpt.Fill(Titles)
End Sub
Sub Delete_Click(Sender As Object, e As DataGridCommandEventArgs)
GetTitleData()
Titles.Tables(0).Rows(e.Item.ItemIndex).Delete
TitlesAdpt.Update(Titles)
Response.Redirect("DeleteTitles.aspx")
End Sub
</script>
</head>
<body>
<h1>Delete Example</h1>
<form runat="server">
<asp:datagrid id="TitleGrid"
ondeletecommand="Delete_Click"
cellpadding="3"
autogeneratecolumns="false"
runat="server">
<alternatingitemstyle backcolor="silver"/>
<columns>
<asp:buttoncolumn buttontype="PushButton"
text="Delete" commandname="Delete" />
<asp:boundcolumn headertext="Title ID"
datafield="title_id"/>
<asp:boundcolumn headertext="Title"
datafield="title"/>
<asp:boundcolumn headertext="Type"
datafield="type"/>
<asp:boundcolumn headertext="Publisher ID"
datafield="pub_id"/>
<asp:boundcolumn headertext="Price"
datafield="price" dataformatstring="{0:c}"/>
</columns>
</asp:datagrid>
</form>
</body>
</html>
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 180
Modifying Configuration Settings |
"Unfortunately, in the first release of the .NET Framework and Visual Studio .NET,
there aren't any rich
GUI tools for editing configuration files..."
NOW READS:
"Unfortunately, in the 1.0 and 1.1 releases of the Framework, there aren't any rich
GUI tools for
editing configuration files..."
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 213
|
The title Example 10-3
"-3. Throw500.aspx".
NOW READS:
"Throw500.aspx"
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 289
Middle |
".NET" was separated across a line break. This HAS BEEN CORRECTED.
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 294
Cache |
"httpCache = Context.Cachea"
NOW READS:
"httpCache = Context.Cache"
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 296
Top Notes |
The IHttpHandler interface is the .NET way of allowing the developer to write code to
for requests to be handled...
NOW READS:
The IHttpHandler interface is the .NET way of allowing the developer to write code
for requests to be handled...
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 308
Constructors |
Dim MyHttpEx As New HttpException() is not a constructor.
HttpException() is the constructor.
The examples that follow show how to throw a new exception, not simply how to construct them.
AUTHOR: these are examples of using the constructors, rather than the constructors themselves
|
Anonymous |
|
|
Printed |
Page 329
After Example |
...will immediately terminate procfessing of the page...
NOW READS:
...will immediately terminate processing of the page...
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 331
Example |
Quote previously wrapped to next line. This HAS BEEN CCORRECTED.
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 383
index |
...in the Char array from which to being writing.
NOW READS:
...in the Char array from which to begin writing.
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 387
Second Example |
Description says that time is given in milliseconds, so 120 should not result in 120
seconds as previously claimed, but in 120 milliseconds. This HAS BEEN CORRECTED and
NOW READS:
..."sets the ScriptTimeout value to 120 milliseconds...."
|
Anonymous |
|
Sep 01, 2004 |
Printed |
Page 424
Last paragraph, 1st sentence |
"Finally, your application is required to have a web.config file."
should be
"Finally, your application is not required to have a web.config file."
|
Anonymous |
|
|