Skip to main content

Professional ASP.NET 2.0

Professional ASP.NET 2.0

Bill Evjen, Scott Hanselman, Farhan Muhammad, S. Srinivasa Sivakumar, Devin Rader

ISBN: 978-0-471-78143-1

Oct 2005

1253 pages

Select type: E-Book

Product not available for purchase

Description

All new, for ASP.NET 2.0, this bestselling book provides experienced developers with real-world examples of the powerful new time-saving, code-saving features in this new version. Seasoned author and International .NET Association founder Bill Evjen along with Scott Hanselman help developers make a smooth transition to this new version of ASP.NET with their clear explanations of even the most dramatic changes.

Helpful examples in both VB and C# clearly show how to build ASP.NET 2.0 applications.

Some of the key chapters and topics you'll find in this book include:

  • 4 chapters on server controls, including an entire chapter dedicated to the controls that are new to ASP.NET 2.0
  • A chapter each on the new Master Pages and Themes/Skins features in ASP.NET 2.0
  • 2 chapters on data presentation
  • Data Management with ADO.NET discussing some of the radical ASP.NET 2.0 changes incorporated in ADO.NET
  • Personalization, Membership, and Role Management
  • A complete chapter on Portal Frameworks and the popular new Web Parts functionality of ASP.NET 2.0
  • Security beyond the built in membership and role management features
  • Caching including the new SQL cache invalidation feature in ASP.NET 2.0
  • Proper debugging and error handling techniques for your applications
  • Building your own server controls and HttpHandlers
  • Business Objects, Mobile Development, XML Web Services
  • Configuring, Administering, managing, packaging, and deploying ASP.NET 2.0 Applications

According to Brian Goldfarb, Microsoft Product Manager - Web Platform and Tools Division, this book "... is a solid one, Professional ASP.NET 2.0 and I recommend to anyone who is serious about working with VS 2005 and ASP.NET 2.0 -- Bill Evjen, Scott Hanselman, Farhan Muhammad, Devin Rader, Srinivasa Sivakumar all did a fantastic job putting together a great read with easy to understand examples and high-quality guidance. This is a must-have for every ASP.NET developers bookshelf (I already have 2 on mine :))"

Acknowledgments.

Introduction.

Chapter 1: Hello ASP.NET 2.0!

Chapter 2: Visual Studio 2005.

Chapter 3: Application and Page Frameworks.

Chapter 4: ASP.NET Server Controls and Client-Side Scripts.

Chapter 5: ASP.NET Web Server Controls.

Chapter 6: ASP.NET 2.0 Web Server Controls.

Chapter 7: Validation Server Controls.

Chapter 8: Working with Master Pages.

Chapter 9: Themes and Skins.

Chapter 10: Collections and Lists.

Chapter 11: Data Binding in ASP.NET 2.0.

Chapter 12: Data Management with ADO.NET.

Chapter 13: Working with XML.

Chapter 14: Site Navigation.

Chapter 15: Personalization.

Chapter 16: Membership and Role Management.

Chapter 17: Portal Frameworks and Web Parts.

Chapter 18: Security.

Chapter 19: State Management.

Chapter 20: Caching.

Chapter 21: Debugging and Error Handling Techniques.

Chapter 22: File I/O and Streams.

Chapter 23: User Controls, Server Controls, Modules, and HttpHandlers.

Chapter 24: Using Business Objects.

Chapter 25: Mobile Development.

Chapter 26: Building and Consuming XML Web Services.

Chapter 27: Configuration.

Chapter 28: Administration and Management.

Chapter 29: Packaging and Deploying ASP.NET Applications.

Appendix A: Visual Basic 8.0 and C# 2.0 Language Enhancements.

Appendix B: ASP.NET Online Resources.

Index.

Code Downloads
Code downloads for this title are available here.
Code Downloads
Code Downloads
Code downloads for this title are available here.
Download
Code Downloads
Download
Updated Book Index
This is an updated index for the book, including additional pages of index entries. This version of the index is included in the printed book starting with the 3rd printing.
Download
Bonus Chapters
This PDF file contains 4 new chapters that were not included in the original Professional ASP.NET 2.0. These four chapters are from the new and expanded version of this book Professional ASP.NET 2.0 Special Edition (ISBN: 0-470-04178-1) and we are making them available in this electronic format for all readers of the original book.
Download
ChapterPageDetailsDatePrint Run
Errata Download
The content for this title has been posted and may be accessed via http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764576100,descCd-download_code.html
2/14/06

8Change in Code
long code listing at bottom of page, replace entire listing with:
<connectionStrings configProtectionProvider="RsaProtectedConfigurationProvider">
<EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<KeyName>Rsa Key</KeyName>
</KeyInfo>
<CipherData>
<CipherValue>
tnbdGPpmif2LOhhzS/fmzCV798XkhdRnK0IrCUrC5q
AnK8NMqHHVEVYKjIyXvlR/ns7Oofih6YzI+z
8f5Dh6HrekLS9yR0AxuSeHda/VJA7bmHdL+18
30nDK0fbrD22BvHTwpYVYNsE6jhYeGEdUBqE1
oIK9mV3nQSjzqr7GbkI=
</CipherValue>
</CipherData>
</EncryptedKey>
</KeyInfo>
<CipherData>
<CipherValue>
gnzaR6BRvj76nUO0nsajgnrLwt72qGY6Sw9
PkM77vk4YTo3816LWDbiVkUuwEpekwN/EPE
cXGLUxopKVOK97rCqCoLNOQY16jKpPBTTp8
bY3WGwVhxxGhezdV+EkWaLN8jXpaBSnGYKH
mY9l4DoWaH9mugrr2a5Y3JB42XPUKJBtrF0
VZj48Hwkb/zOD7ggWmJujiFH5xQ/FrIC76I
16QKSInJiZ8dZU
</CipherValue>
</CipherData>
</EncryptedData>
</connectionStrings>
2/6/06

10Error in Text
Page 10 mentions that ASP.NET 2.0 uses an MDB file, when in fact it uses an MDF file. The following parenthetical note not to confuse with Access is unnecessary in this case.
05/08/2006

42Error in text
Next to last paragraph, last line, first word:

mathrandom
should be:
mathrand
12/4/05

54Error in code
change to be made in 3rd printing
last line of code on the page, near the end of the line:
Inherits="Default" %>

should be
Inherits="_Default" %>

change to be made for the second printing:
Inherits="Default_aspx" %>

should be:
Inherits="_Default" %>
12/9/05

354Error in Table
table at top, 2nd column, last line:
.asmx.vb or .asmx.cs file

should be:
.vb or .cs file
5/12/06

55Error in Code Block
2nd shaded code block; after 3rd line using System.Configuration; insert this additional line between 3rd and 4th:
using System.Collections;
2/6/06

357Error in Table
table, first column, 3rd line:
AutoEventWireUp

should be:
AutoEventWireup
5/12/06

357Error in Table
table, 2nd column, last line, last word:
False

should be:
True
5/12/06

359Error in Table
top table, 2nd column, 2nd row (description of the Transaction entry):
change to read:
Specifies whether transactions are supported on the page. The settings for this attribute are Disabled, NotSupported, Supported, Required, and RequiresNew. The default setting is Disabled.
5/12/06

359Error in Table
bottom table, first column, 1st line:
AutoEventWireUp

should be:
AutoEventWireup
5/12/06

360Error in Table
table, 2nd column, last word of EnableTheming description (4th row):
False
should be:
True
5/12/06

361Error in Table
table, first column, 1st line:
AutoEventWireUp

should be:
AutoEventWireup
5/12/06

361Error in Table
table, 2nd column, last word of EnableTheming description (8th row):
False

should be:
True
5/12/06

62Error in Code Block
large shaded code block, insert the following 2 additional lines, between current 4th and 5th lines:

<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
2/6/06

363Delete line in Code Block
delete 14th line of large shaded code block:
<add namespace="System.Web.UI.Imaging" />
2/6/06

363Error in Text
2nd paragrapgh, 3rd and 4th lines:
System.Data.OleDB

should be:
System.Data.OleDb
5/12/06

363Error in Text
2nd paragrapgh, 3rd and 4th lines:
OLEDBConnection instead of System.Data.OleDB.OLEDBConnection

should be:
OleDbConnection instead of System.Data.OleDb.OleDbConnection
5/12/06

364Error in Code
In the first code block, first line the code reads:

<%@ Register TagPrefix="MyTag" Namespace="MyName:MyNamespace"

should be:

<%@ Register TagPrefix="MyTag" Namespace="MyName.MyNamespace"
5/12/2006

365Error in Table
Table:
Delete 2nd row, entry for DiskCacheable and description
5/12/2006

366Errors in Text
First paragraph under @Reference heading:

2nd line, next to last word reads:
two

Should read:
a single


AND


First set of bullets:
delete first bullet
5/12/2006

374Error in Code
Listing 3-13, shaded code line reads:
If Page.IsCrossPagePostBack Then

Should read:
If PreviousPage.IsCrossPagePostBack Then
5/12/2006

375Errors in Code
Code listing under the C# heading first shaded code line reads:
if (Page.IsCrossPagePostBack) {

Should read:
if (PreviousPage.IsCrossPagePostBack) {


AND


Code listing under the C# heading line after the first shaded code line reads:
Textbox1

Should read:
TextBox1
5/12/2006

76Error in Text
1st full paragraph, end of 2nd sentence (I'm not sure how to represent the little arrow character, it's not changing, just some of the text around it):

choose Add Folder->App_Code Folder.
should be
choose Add ASP.NET Folder->App_Code.
2/6/06

86Error in Text
2nd paragraph after the figure (beginning with ASP.NET 2.0 introduces...) replace the entire paragraph, the 2 shaded code lines, and the line in between the shaded code line with. The last line of code should be a shaded code line
ASP.NET 2.0 introduces the technology a few ways to precompile your entire application with a single command that you can issue through a command line. One type of compilation is referred to as in-place precompilation. In order to precompile your entire ASP.NET application, you must use the aspnet_compiler.exe tool that now comes with ASP.NET 2.0. You navigate to the tool using the Command window. Open the Command window and navigate to C:\Windows\Microsoft.NET\Framework\v2.0.xxxxx\. When you are there, you can work with the aspnet_compiler tool. You can also get to this tool directly by pulling up the Visual Studio 2005 Command Prompt by selecting Start->All Programs->Microsoft Visual Studio 2005->Visual Studio Tools->Visual Studio 2005 Command Prompt. Once you get the command prompt you would then use the aspnet_compiler.exe tool to perform an in-place precompilation using the following command:
aspnet_compiler –p "C:\Inetpub\wwwroot\WROX
2/6/06

87Error in Text
top of page 2nd line end of paragraph:
invoke precompile.axd
should be
employ this pre-compilation method
2/6/06

87Text Deletion
2nd full paragraph, beginning with "To precompile your application..." Delete this entire paragraph.
2/6/06

4105Error in Code
Single shaded code line near end of page reads:
Definition: Value;

Should read:
Property: Value;
5/12/2006

4107Error in Code
Shaded code block:
move the a:visited section from after the a:hover section to bevore it. That will result in the whole style tag being:

<style type="text/css">
<!--
body {
font-family: Verdana;
}

a:link {
text-decoration: none;
color: blue;
}

a:visited {
text-decoration: none;
color: blue;
}

a:hover {
text-decoration: underline;
color: red;
}

-->
</style>
5/15/2006

108Error in Code
1st paragraph, 2nd line, last word:

<script>
should be:
<style>
12/29/05

4110Error in Code
First paragraph after the Looking at the HTMLControl base Class, 2nd line reads:
System.Web.UI.HtmlControls

Should read:
System.Web.UI.HtmlControls.HtmlControl
5/12/2006

4111Error in Code
First paragraph after the Looking at the HTMLContainerControl Class, istline:
HtmlControl

Should read:
HtmlContainerControl
5/12/2006

4119Error in Text
Listing 4-13, first line after C# heading:
add semicolon to end of line.
5/12/2006

124Error in 1st code block
First code block, 8th line (not counting blank lines):

End Function
should be:
End Sub
11/11/05

123Remove semicolon in code block
2nd shaded code block, 4th line - remove semicolon at end so it reads:

Dim _callbackResult As String = Nothing
12/4

126Error in Code Block
Code block after the paragraph that begins "This interface requires you to...", last line of code:

End Function
should be:
End Sub
11/11/05

4127Error in Code
Top of page first paragraph, 3rd line reads:
SupportsXmlHTTP

Should read:
SupportsXmlHttp
5/12/2006

128Error in Code Block
p128, first shaded listing (4-18 continued): 4th line, end:

"398px"
should be
"400px">
2/6/06

128Error in Code Block
same listing, 5th line:

Height="22px"></asp:TextBox>
should be
</asp:TextBox>

AND

Last shaded code block on page, 4th line of code not counting blanks:
GetTemp

Should read:
getTemp
2/6/06

129Error in First Code Block
first code block, there's a line of code missing. The first few lines should read:

using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class WSCallback : System.Web.UI.Page,
System.Web.UI.ICallbackEventHandler
{

string _callbackResult = null;

protected void Page_Load(object sender, EventArgs e)

The line that's missing in print that needs to be added in this is:
string _callbackResult = null;

and it should align with the protected line below it.
12/15/05

129Error in URL
italic note near end of page: change URL in 2nd line to read:
http://www.xmethods.net/sd/2001/TemperatureService.wsdl
2/6/06

156Error in Code
listing 5-14, 15th line not counting blanks:
<:title>CheckBox control</title>
should be:
<title>CheckBoxList control</title>
2/6/06

187Add Code
large grey code block in middle of page under C# heading:
add the following line above grey block:
<%@ Page Language="C#"%>
5/18/06

188Error in Text
first paragraph of text, first line:
FileChoices.xml

should be:
FilmChoices.xml
5/18/06

211Delete line in Code Block
grey code block at top, next to last line:
delete this line
5/18/06

7219Replace Code
grey shaded code box:
replace 4th line:
Label1.Text = "Page is valid!"
with these 3 lines:
If Page.IsValid Then
Label1.Text = "Page is valid!"
End If
5/18/06

7219Replace Code
grey shaded code box:
replace 8th line:
<head runat="server">
with:
<head runat="server" id="Head1">
5/18/06

7220Replace Code
grey shaded code box at top:
replace 4th line:
Label1.Text = "Page is valid!";
with these 3 lines:
if (Page.IsValid) {
Label1.Text = "Page is valid!";
}
5/18/06

222Typo
First sentence of the first paragraph under the "Using the InitialValue Property" heading:
RequireFieldValidator

should be:
RequiredFieldValidator
03/02/07

7225Replace Code
grey shaded code box:
replace 5th line:
<head runat="server">
with:
<head runat="server" id="Head1">
5/18/06

7225Replace Code
grey shaded code box:
replace 9th line:
<form runat="server">
with:
<form runat="server" id="Form1">
5/18/06

233Replace Code
grey shaded code box, replace 8th line:
<head runat="server">
with:
<head id="Head1" runat="server">
5/18/06

234Replace Code
page 234 unshaded code block at bottom of page, first line:
<script language="JavaScript">
should be:
<script type="JavaScript">
5/18/06

236Replace Code
code listing, replace 19th line:
<head runat="server">
with:
<head id="Head1" runat="server">
5/18/06

7243Replace Code
listing 7-24, 2nd shaded code line:
<bgsource
should be:
<bgsound
5/18/06

7243Error in Text
paragraph following listing 7-24, change the 2nd setence to:
In this example, the ErrorMessage uses the <bgsound> element to place a sound on the Web form (works only with Internet Explorer).
5/18/06

7245Replace Code
listing 7-25, 3nd line:
<head runat="server">
should be:
<head id="Head1" runat="server">
5/18/06

276Erron in Text
last paragraph, 2nd line: file location:
C:\Windows\Microsoft.NET\Framework\v2.0xxxxx\CONFIG\Browsers
should be
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers
2/6/06

286Error in Text
Page 286, listing 9-4, 4th line:

Text reads:
Textbox1

Should read:
TextBox1

(The "B" of "box" needs to be capitalized.)
07/17/2006

289Error in Code Block
first shaded code listing 4th line (not counting blanks):
COLOR: Red;
should be
color: Red;
2/6/06

8295Error in Code
page 295, shaded code block at bottom of page, 1st line:
Delete: language="vb"
07/17/2006

8295Error in Text
page 295, first paragraph, line 3:

Text reads:
skinid

Should read:
SkinID
07/17/2006

11341Error in Code
page 341, next to last line:

code reads:
ControlParameter

should read:
QuerystringParameter
07/17/2006

11347Error in Code
page 347, code line 23:

code reads:
return new ds;

should read:
return ds;
07/17/2006

11349Error in Text
page 349, after heading "Configuring Data Source Control Caching" 3rd line:

text reads:
SiteMap

should read:
SiteMapDataSource
07/17/2006

11366-7Error in Text
Listing 11-28, the first chunk of grey shaded code (the VB code), line 4 (last line on page):

Text reads:
If (Not IsDBNull (e.Exception)) Then

should be:
If (Not IsNothing(e.Exception)) Then
07/21/2006

11375Error in Code
page 375, listing 11-36, 3rd line:

code reads:
FilterExpression="CustomerID='@CustomerID'"

should read:
FilterExpression="CustomerID='{0}'"
07/17/2006

395Error in Text
under the "Using Data Adapter" heading, 2nd line:

two-day

should be

two-way
1/30/06

12396Error in Code
page 396, listing 12-2, 5th unshaded line after end of first shaded code section:

delete the leading space and trailing space inside the " " so it reads:
MyCommand.CommandText = "SELECT TOP 5 * FROM CUSTOMERS"
07/17/06

12397Error in Code
page 397, 5th unshaded line after end of first shaded code section:

delete the leading space and trailing space inside the " " so it reads:
MyCommand.CommandText = "SELECT TOP 5 * FROM CUSTOMERS";
07/17/06

12399Error in Code
single shaded code line in middle of page:

delete the leading space and trailing space inside the " " so it reads:
"SELECT * FROM CUSTOMERS WHERE CITY = @CITY AND CONTACTNAME = @CONTACT"
07/17/06

12400Error in Code
last shaded code line at bottom of page:

delete the leading space and trailing space inside the " " so it reads:
"SELECT * FROM CUSTOMERS WHERE CITY = @CITY AND CONTACTNAME = @CONTACT";
07/17/06

12403Error in Code
5th code line:

delete the leading space and trailing space inside the " " so it reads:
"SELECT * FROM CUSTOMERS WHERE CITY = @CITY"
07/17/06

12404Error in Code
13th code line:

delete the leading space and trailing space inside the " " so it reads:
"SELECT * FROM CUSTOMERS WHERE CITY = @CITY";
07/17/06

405Error in Text
3rd paragraph, 3rd line from end:

Moving over a 100KB records can...

should be

Moving over 100,000 records can ....
1/30/06

12410Error in Text
last paragraph, first line:
100KB

should be:
100MB
07/17/06

12411Error in Code
last 2 lines:

delete the leading space on next to last line and trailing space on last line inside the " " so it reads:
ShajarCom.CommandText = "SELECT ID, First_Name, Last_Name, " & _
" 'Shajar' as Source FROM MailingList_Temp"
07/17/06

12413Error in Code
lines 20, 21:

delete the leading space on next to last line and trailing space on last line inside the " " so it reads:
ShajarCom.CommandText = "SELECT ID, First_Name, Last_Name, " & _
" 'Shajar' as Source FROM MailingList_Temp";
07/17/06

12417Error in Code
line 21 of code:

delete top 500 so it reads:
SelectCommand.CommandText = "SELECT * FROM EMPLOYEES"
07/17/06

12417Error in Code
line 25 of code, delete leading space inside " and change + to & so:

" UPDATE EMPLOYEES SET Address=@Address, " + _
should be:
"UPDATE EMPLOYEES SET Address=@Address, " & _
07/17/06

12418Error in Code
11th code line from bottom of page:

code reads:
EmpAdapter.UpdateBatchSize = 100

should be:
EmpAdapter.UpdateBatchSize = 3
07/17/06

12418Error in Code
10th line from bottom of page:

delete the line:
Dim Watch As Diagnostics.Stopwatch = New Diagnostics.Stopwatch()
07/17/06

12419Error in Code/Text
9th and 10th lines:

9th line:
"+" near end of 9th line should be "&"

AND

10th line:
there should be 1 space inside leading " not 2 so they read:
lblCounter.Text += "Batch is processed for " + args.RowCount.ToString() & _
" rows<br>"
07/17/06

12420Error in Code
line 9 of code:

delete top 500 so it reads:
SelectCommand.CommandText = "SELECT * FROM EMPLOYEES";
07/17/06

12420Error in Code/Text
line 12 delete the leading space " so it reads:
UpdateCommand.CommandText = "UPDATE EMPLOYEES SET Address=@Address, " +
07/17/06

12421Error in Code/Text
line 12:

code reads:
EmpAdapter.UpdateBatchSize = 100;

should be:
EmpAdapter.UpdateBatchSize = 3;
07/17/06

12424,425,426,427Error in Text
page 424, lines 3, 4, 5, 6, 7, 8 delete the leading space inside the first " on each of the lines

AND

page 425, lines 2, 3, 4, 5 delete the leading space inside the first " on each of the lines

AND

page 425: line 5: "+" near end of line should be "&"

AND

page 426: lines 16, 17, 18, 19, 20, 21: delete the leading space inside the first " on each of the lines

AND

page 427: lines 23, 24, 25, 26: delete the leading space inside the first " on each of the lines
07/17/06

12427Error in Code
4th line from bottom of page at end of line:
<Br> should be <br />
07/17/06

433Errors in Table
table:
3rd entry on page, 2nd column:
Wait Handle

should be:
WaitHandle
(in 2 places)

AND

next to last entry, 2nd column:
Time Span

should be:
TimeSpan
03/02/07

12434Error in Text
page 434, lines 2, 3, 4, 5 up from bottom of page: delete the leading space inside the first " on each of the lines
07/17/06

12435Errors in Code
line 26,code reads:
<div><br />

should be:
<div>

AND

5th line up from end of page, code reads:
</asp:GridView><br />

should be:
</asp:GridView>
07/17/06

12436,437Errors in Text (Spaces)
page 436: lines 17, 18, 19, 20, 21: delete the leading space inside the first " on each of the lines

AND

page 436: line 21: delete the trailing space inside the closing " on this line

AND

page 437: lines 2, 3, 4, 5 up from bottom of page: delete the leading space inside the first " on each of the lines

AND

page 437: lines 2 from bottom of page: delete the trailing space inside the closing " on this line
07/17/06

12438Error in Code
line 9 after end of grey shaded code section:
<div><br />
should be:
<div>

AND

5th line up from end of page:
</asp:GridView><br />
should be:
</asp:GridView>
07/17/06

12439Errors in Spacing
lines 18, 19, 20, 21, 22: delete the leading space inside the first " on each of the lines

AND

page 439: line 22: delete the trailing space inside the closing " on this line
07/17/06

12440, 441Errors in Text (Spaces)
page 440, listing 12-11: 9th line up from the bottom of the page: delete the leading space and trailing space inside the " " so it reads:
"SELECT * FROM Customers WHERE CompanyName = 'Alfreds Futterkiste'"

AND

page 440 and 441: llast 3 lines on page 440 and first 3 on top of 441: delete the leading space inside the first " on each of the lines

AND

page 441: line 3: delete the trailing space inside the closing " on this line
07/17/06

12442, 443Errors in Text
page 442: bottom of page, after last line, add this new line, indented to align with current last line on page:
OrdersCommand.CommandText =

AND

page 443: lines, 2, 3, 4, 5, 6, 7 : delete the leading space inside the first " on each of the lines

AND

page 443 line 7: delete the trailing space inside the closing " on this line
07/17/06

12445Errors in Text
page 445, line 14: delete the leading space and trailing space inside the " " so it reads:
"SELECT * FROM Customers WHERE CompanyName = 'Alfreds Futterkiste'"

AND

page 445: lines, 18, 19, 20, 21, 22, 23, 24 : delete the leading space inside the first " on each of the lines

AND

page 445 line 24: delete the trailing space inside the closing " on this line
07/17/06

12447Errors in Text
page 447, line 14 up from bottom of page: delete the leading space and trailing space inside the " " so it reads:
"SELECT * FROM Customers WHERE CompanyName = 'Alfreds Futterkiste'"

AND

page 447: lines, 4, 5, 6, 7, 8, 9, 10 up from bottom of page: delete the leading space inside the first " on each of the lines

AND

page 447 line 4 from bottom of page: delete the trailing space inside the closing " on this line
07/17/06

12449Errors in Text
page 449: code lines 17, 18, 19, 20, 21: delete the leading space inside the first " on each of the lines

AND

line 21 from bottom of page: delete the trailing space inside the closing " on this line
07/17/06

12449Error in Code
<%@ Page Language="C#" %>

should be:

<%@ Page Language="VB" %>
10/03/2007

12451Errors in Text
page 451: lines 2, 3, 4, 5, 6: delete the leading space inside the first " on each of the lines

AND

page 451 line 6 from bottom of page: delete the trailing space inside the closing " on this line
07/17/06

492Error in Text
in the paragraph after the heading "Databases and XML."
3rd line:
ExectuteXmlReader

should be:
ExecuteXmlReader
11/20/07

13493Error in Code
select * from customers as customer FOR XML AUTO

should be:

select * from customers FOR XML AUTO
07/05/2007

13494Error in Text
By using an alias in the select statement, you can affect the name of each row’s element.

should be:

By using an alias like as Customer in the select statement, you can affect the name of each row’s element.
07/05/2007

519Error in code
listing 14-11, 1st line, beginning of line:

<asp: TreeViewTreeView
should be:
<asp: TreeView
12/4/05

14520Error in Code
page 520, shaded code block, beginning of line 1:

code reads:
<asp:TreeViewTreeView

should read:
<asp:TreeView

AND

Last line of shaded code block:

code reads:
</asp:TreeViewTreeView>

should read:
</asp:TreeView>
07/18/2006

14525Error in Code
page 525, first paragraph:

line 3: replace \ with /

AND

next to last line:
backslash should be forward-slash

AND

last line:
delete: (two backslashes if you are working in C#)
07/18/2006

14525Error in Code
page 525, listing 14-13, first shaded code section:

add this new line between current 2nd and 3rd lines, aligns with current 3rd line:
TreeView1.CollapseAll()

AND

current lines 4 and 5, in 3 places:
replace \ with /

AND

second shaded code section:

add this new line between current 2nd and 3rd lines, aligns with current 3rd line:
TreeView1.CollapseAll();

AND

current lines 4 and 5, in 3 places:
replace \\ with /
07/18/2006

14525Error in Code
page 525: 2nd paragraph, line 2:

2 places replace \ with /
07/18/2006

14525Error in Code
page 525, listing 14-14, first shaded code section:

add this new line between current 2nd and 3rd lines, aligns with current 3rd line:
TreeView1.CollapseAll()

AND

second shaded code section:
add this new line between current 2nd and 3rd lines, aligns with current

AND

3rd line:
TreeView1.CollapseAll();
07/18/2006

554Error in Text
line 5 (counting the blank line)
Page.User.Idenity
should be
Page.User.Identity
1/30/06

14546Error in Code
page 546, unshaded code in middle of page:

code reads:
<siteMapNode url"News.aspx" resourceKey="News">

should read:
<siteMapNode url="News.aspx" resourceKey="News">
07/18/2006

16586Error in Code
Page 586, listing 16-2:

grey shaded line 2:
loginUrl="login.aspx"

should be:
loginUrl="Login.aspx"

AND

next to last grey shaded line:
cookieless="useDeviceProfile" />

should be:
cookieless="UseDeviceProfile" />
07/21/06

16586Error in Code
Bottom of page bullet list, 2nd bullet last line:

code reads:
login.aspx

should be:
Login.aspx
07/21/06

16587Error in Text
The last bullet of the bullet list:
Each of the following items in this list should begin with a cap letter instead of lower case and each appears twice in the paragraph to be corrected:

useDeviceProfile
useCookies
autoDetect
useUri
07/21/06

16593Error in code
code listing 16-8, VB code, lines 5-7 of code:
Profile.FirstName = Firstname.Text
Profile.LastName = Lastname.Text
Profile.Age = Age.Text

should be:
Dim pc As ProfileCommon = New ProfileCommon()
pc.Initialize(CreateUserWizard1.UserName.ToString(), True)

pc.FirstName = Firstname.Text
pc.LastName = Lastname.Text
pc.Age = Age.Text

pc.Save()
10/23/06

16594Error in Text
First text paragraph, line 5:

text reads:
listing 16-7

should be:
listing 16-8
07/21/06

16594Error in Code
Code block at bottom of page, first line:

code reads:
Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, _

should be:
Protected Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, _
07/21/06

16594Error in Code
C# code, lines 5-7 of code:
Profile.FirstName = Firstname.Text;
Profile.LastName = Lastname.Text;
Profile.Age = Age.Text;

should be:
ProfileCommon pc = new ProfileCommon();
pc.Initialize(CreateUserWizard1.UserName.ToString(), true);

pc.FirstName = Firstname.Text;
pc.LastName = Lastname.Text;
pc.Age = Age.Text;

pc.Save();
10/23/09

16594Error in text
page 594: first paragraph following the code, replace the first sentence with:
With this change to the standard registration process as is defined by a default instance of the CreateUserWizard control, your registration system now includes the request for properties stored and retrieved using the ProfileCommon object. Then, using the ProfileCommon.Initialize() method, you initialize the property values for the current user. Next, you set the property values using the strongly typed access to the profile properties available via the ProfileCommon object. After all the values have been set, you use the Save() method to finalize the process.
10/23/06

16599Errors in Table
Page 599, table at top of page, 1st row, 2nd column, add this to the end of the description:

When it is set to False, passwords cannot be retrieved although they can be changed with a new random password.

AND

Page 599, table at top of page, 2nd row, 2nd column, delete this from the end of the description:

When it is set to False, passwords cannot be retrieved although they can be changed with a new random password.
07/21/06

16600Error in Text
First text paragraph, first line:

text reads:
<authentication>

should be:
<authorization>
07/21/06

16601Error in Code
Top of page, code line:

text reads:
login.aspx

should be:
Login.aspx
07/21/06

16602Error in Text
Last text paragraph on page, following listing 16-13:

text reads:
and the subelements are used to modify those

should be:
sub-element is used to modify a
07/21/06

16604Error in Code
Listing 16-14, 2nd shaded code section, C# section first line:

code reads:
if (Membership.ValidateUser(TextBox1.Text.ToString(), TextBox2.Text.ToString()) {

should be:
if (Membership.ValidateUser(TextBox1.Text, TextBox2.Text) {
07/21/06

16610Error in Code
Listing 16-19, 3rd and 4th lines from bottom of page:

code reads:
<smtp>
<network host="localhost" port="25" from="evjen@yahoo.com"

should be:
<smtp from="evjen@yahoo.com"> <network host="localhost" port="25"
07/21/06

16611Error in Text
Bullet list, bullet #2:

text reads:
Cc

should be:
CC
07/21/06

16618Error in Table
Table top of page, last row, column 1:

table reads:
DefaultProvider

should be:
defaultProvider
07/21/06

16619Error in Code
Listing 16-25, add new lines before and after current 4th line so:

ListBoxDataBind()
becomes:
If Not Page.IsPostBack Then
ListBoxDataBind()
End If
07/21/06

16620Error in Code
Listing 16-25, C# shaded section at top of page:
Add new lines before and after current 5th line so:

ListBoxDataBind();
becomes:
if (!Page.IsPostBack)
{
ListBoxDataBind();
}
07/21/06

16622Error in Code
Lsting 16-27,line 4:
Add new lines before and after current 4th line so:

DropDownDataBind()
becomes:
If Not Page.IsPostBack Then
DropDownDataBind()
End If
07/21/06

16623Error in Code
2nd shaded section (C# section):
Add new lines before and after current 5th line so:

DropDownDataBind();
becomes:
if (!Page.IsPostBack)
{
DropDownDataBind();
}
07/21/06

16626Error in Code
Listing 16-29, 2nd shaded code section, C# section, first line:

code reads:
If

should be:
if
07/21/06

643Error in code
5th shaded code line:

Webpartmanager1.SupportedDisplayModes(DropDownList1.SelectedValue.ToString())

should be:

Webpartmanager1.SupportedDisplayModes[DropDownList1.SelectedValue.ToString()]
12/4/05

643Error in code
14th shaded code line:

ListItem dd_ListItem = New ListItem(modeName, modeName);

should be:

ListItem dd_ListItem = new ListItem(modeName, modeName);
12/4/05

645Error in Text
Next to past paragraph, fist line:

Change "delete" to "close" so it reads:
To get some items to appear in the list (since none do at present), close
12/4/05

651Error in code
2nd shaded code block, 1st line:

if Webpartmanager1.Personalization.Scope = PersonalizationScope.User
should be:
if Webpartmanager1.Personalization.Scope == PersonalizationScope.User
12/4/05

17659Error in Table
First table on page, 2nd row, 2nd column, last thing in last line of entry:

table reads:
NormalDisplayMode

should be:
BrowseDisplayMode
07/21/06

17659Error in Table
First table on page, delete rows 3, 4, 5, 6 completely, removing the following items and their descriptions:

EnableCatalogDisplayMode
EnableConnectDisplayMode
EnableDesignDisplayMode
EnableEditDisplayMode
07/21/06

17660Error in Table
Page 660, table, delete 8th row completely, removing the HeaderAlignment item and description.

AND

Page 660, table, 12th row, first colmnn: delete MenuImageUrl and MenuText.
07/21/06

17660Error in Table
Page 660, table, last row on page, first column:

Table reads:
Orientation

Should be:
LayoutOrientation
07/21/06

17661Error in Table
page 661, table at bottom of page: delete 3rd row from bottom completely, removing the AllowPaginate item and description
07/21/06

17662Error in Table
page 662, table first row completely, removing the Caption item and description
07/21/06

664Error in code block
2nd shaded code block, 10th and 11th lines:

TextBox StateInput;
ListBox StateContents;

should be

TextBox StateInput = new TextBox();
ListBox StateContents = new ListBox();
12/4/05

665Error in Code Block
3rd shaded code line

[Personalizable(), WebBrowsable]
should be:
[Personalizable, WebBrowsable]
12/4/05

17668Error in Text
page 668: 2nd text paragraph:
delete the 2nd sentence ("Because the LabelStartText uses the WebBrowsable attribute, the developer using this control can find this property in the Properties window of Visual Studio and change it if necessary. ")
07/21/06

18692Error in Text
page 692, listing 18-14: first line of VB section (first shaded section):

text reads:
If (User.Identity.IsAuthenticated()) Then

should be:
If (User.Identity.IsAuthenticated) Then
07/21/06

18693Error in Code
page 693, listing 18-14, first line of C# section (second shaded section):

code reads:
if (User.Identity.IsAuthenticated()) {

should be:
if (User.Identity.IsAuthenticated) {
07/21/06

18693Error in Text
page 693, listing 18-17, VB section (first shaded code section) 2nd line:

text reads:
AdminUser = User.IsInRole(WindowsBuiltInRole.Administrator)

should be:
AdminUser = User.IsInRole(WindowsBuiltInRole.Administrator.ToString())
07/21/06

18693Error in Code
page 693, first code line at top of page:

code reads:
\

should be:
\\
07/21/06

18693Error in Code
page 693, listing 18-17, C#section (second shaded code section) 2nd line:

code reads:
adminUser = User.IsInRole(WindowsBuiltInRole.Administrator)

should be:
adminUser = User.IsInRole(WindowsBuiltInRole.Administrator.ToString());
07/21/06

19718Error in Text
replace 3rd sentence:

If a page is requested requiring read-only access and two other requests are queued up, one requesting read-only access and one requesting read/write access, the read-only page is executed while the read/write access page waits

with:

The order that locks are requested is essential. As soon as a writer lock is requested, even before a thread is granted access, all subsequent reader lock requests are blocked, regardless of whether a reader lock is currently held or not. While ASP.NET can obviously handle multiple requests, only one request at a time gets write access to a Session.
07/05/2007

21801Code Addition
page 801, listing 21-6, VB section of code (first shaded grey block) line 4:

code reads:
AnError.GetBaseException()

should be:
bigError.GetBaseException()
07/21/06

22808Code Addition
page 808, listing 22-2, first shaded code section (VB):

after 2nd line, add the following new line indented even with the current 3rd line:
If (Not Page.IsPostBack) Then
07/24/06

22808Code Addition
page 808, listing 22-2, first shaded code section (VB):

between current 13th line (Next) and 14th (End Sub) add the following new line, indented even with Next:
End If
07/24/06

22808Code Addition
page 808, list 22-2, 2nd shaded code section (C#):

after current 3rd line, add the following 2 new lines indented, even with the current 4th line:
if (!Page.IsPostBack)
{
07/24/06

22809Code Addition
page 809, list 22-2, 2nd shaded code section at top of page (C#):

before the current next to last line, add the following new line indented, even with the line above it:
}
07/24/06

22810Code Addition
page 810, listing 22-3:

after 2nd line, add the following new line indented even with the current 3rd line:
If (Not Page.IsPostBack) Then
07/24/06

22810Code Addition
page 810, listing 22-3:

after current 14th line (Next) ) add the following new line, indented even with "Next":
End If
07/24/06

22811Code Addition
page 811, (C#):

after current 3rd code line (the single { ), add the following 2 new lines indented, even with the current 4th line:
if (!Page.IsPostBack)
{
07/24/06

22811Code Addition
page 811:

after current 17th line (a single } ) add the following new line indented, even with the line above it:
}
07/24/06

22816Code Addition
page 816, listing 22-6:

after 2nd line, add the following new line indented even with the current 3rd line:
If (Not Page.IsPostBack) Then
07/24/06

22816Code Addition
page 816, listing 22-6:

after current 14th line (Next) add the following new line, indented even with Next:
End If
07/24/06

22818Code Addition
page 818, 2nd code section (C#):

after current 3rd code line (the single { ), add the following 2 new lines indented, even with the current 4th line:
if (!Page.IsPostBack)
{
07/24/06

22818Code Addition
page 818, 2nd code section (C#):

after current 9th line (if (drive.IsReady)) add the following new line alinged even with 9th line:
{
07/24/06

22818Code Addition
page 818, 2nd code section (C#):

before current 12th line (else) add the following 2 lines (the first line indents even with node 2 lines above it, the 2nd line indents with else below it):
LoadDirectories(node, drive.Name)
}
07/24/06

22818Code Addition
page 818, 2nd code section (C#):

between current 15th and 16th lines (} and } ) add another line indented even with the } above it:
}
07/24/06

22820Code Addition
page 820, listing 22-7:

first shaded code section (VB) add a new line before the first line and change the first line as follows:
Dim dir as New System.IO.DirectoryInfo("C:\")
For Each file as System.IO.FileInfo In dir.GetFiles("*.*"))
07/24/06

22825Error in Code
page 825: listing 22-9

2nd shaded code section (C#), in all of the lines except the first:
all instances of "&" should be "+"
07/24/06

22820Code Addition
page 820, listing 22-7:

2nd shaded code section (C#) add a new line before the first line:
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"C:\");
07/24/06

22826Errors in Code/Text
page 826, listing 22-10:

line 4:
delete new

AND

next line:
code reads:
File.GetAccessControl(Server.MapPath("TextFile.txt"))

should be:
sec = File.GetAccessControl(Server.MapPath("TextFile.txt"))

AND

line 7:
code reads:
typeof

should be:
GetType

AND

last line on page:
code reads:
Dim auth As New AuthorizationRuleCollection = _

should be:
Dim auth As System.Security.AccessControl.AuthorizationRuleCollection = _
07/24/06

22827Errors in Code/Text
line 2:

code reads:
typeof

should be:
GetType

AND

line 5:

code reads:
For Each r As FileSystemAccessRule In auth

should be:
For Each (r As System.Security.AccessControl.FileSystemAccessRule In auth)
07/24/016

22830Error in Code
unnumbered code section in middle of page:

3rd shaded line of code:
delete the extra c in access
07/24/06

22830Error in Text
page 830, first text paragraph:

last line, text reads:
And
should be:
Or
07/24/06

22833Error in Table
page 833, table:

first column, the classes in the first column in the last 6 rows should be replaced with the following 6 corrections:

System.Net.Sockets.NetworkStream
System.Security.Cryptography.CryptoStream
System.IO.Compression.GZipStream
System.IO.Compression.DeflateStream
System.Net.Security.NegotiateStream
System.Net.Security.SslStream
07/24/06

22834Error in Code
page 834, listing 22-13, 2bd shaded code section (C#), line 3:

code reads:
fs.Read(data, 0, fs.Length);

should be:
fs.Read(data, 0, (int)fs.Length);
07/24/06

22834Error in Text
page 834, 2nd to last paragraph before bullet last:

Change last sentence to:
The FileMode enumeration lets you specify how the stream should be opened, for reading, writing, or both reading and writing.
07/24/06

22835Error in Code
page 835, listing 22-14: first shaded code section (VB) line 2:

code reads:
FileAccess.Write, FileShare.Read, FileOptions.Asynchronous)

should be:
FileAccess.Write, FileShare.Read, 8, FileOptions.None)
07/24/06

22838Error in Text
page 838: next to last paragraph, last line:

Text reads:
OpenWrite

Should be:
Open
07/24/06

22840Error in Code
page 840, listing 22-18, last line of code:

code reads:
binary.Close();

should be:
binaryreader.Close();
07/24/06

22841Error in Code
page 841, unnumbered shaded code at top of page, line 2:

code reads:
new StreamReader(@"C:\Wrox\text.txt",System.Encoding.Text.Unicode);

should be:
new StreamReader(@"C:\Wrox\text.txt",System.Text.Encoding.Unicode);
07/24/06

22841,842Error in Code
page 841, 842, listing 22-19:

2nd line of code section on page 841 (VB) and 2nd line of code section on page 842 (C#), in both places, add the following before the closing ) at the end of the line:
, FileMode.Open
07/24/06

22843Error in Code
page 843, 2nd shaded code section , C# code listing at top of page:

5 lines from end:
add another ) after "zip")
07/24/06

22843Error in Text
page 843, first text paragraph, last line:

text reads:
on the c:\Wrox

should be:
in your website
07/24/06

22844Error in Code/Text
page 844, last line on page:

replace line with these 2 lines:
Namespace Wrox.Demo.Compression
Public Class CompressionModule
07/24/06

22845Error in Code
page 845, first shaded code section:

add new line after current last line:
End Namespace
07/24/06

22845Error in Code/Text
page 845 replace last 3 lines on page with these 3:

namespace Wrox.Demo.Compression
{
public class CompressionModule : IHttpModule
07/24/06

22848Error in Code
page 848, listing 22-24, 2nd shaded code section (c#) line 2:

code reads:
if (!this.SerialPort1.IsOpen())

should be:
if (!this.SerialPort1.IsOpen)
07/24/06

22849Errors in Code
page 849, listing 22-25, 2nd shaded code section (C#), 3rd line from end of page:

code reads:
HttpWebRequest request = HttpWebRequest.Create( uri );

should be:
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create( uri );

AND

last line at end of page:

code reads:
HttpWebResponse response = request.GetResponse();

should be:
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
07/24/06

22854Error in Code
page 854, listing 22-28, 2nd shaded code section (C#) last 2 lines on page should be:

FileWebRequest request = (FileWebRequest)FileWebRequest.Create(uri);
FileWebResponse response = (HttpWebResponse)request.GetResponse();
07/24/06

22856Error in Text
page 856, first text paragraph on page lines 1 and 2:

2 instances of :
Message

in code font should be:
MailMessage
07/24/06

22856Error in Text
page 856, first paragraph on pages next to last line:

text reads:
MailRecipientCollection

should be:
MailAddressCollection
07/24/06

23862Error in Code
page 862, first shaded code section, line 3:

code reads:
Set

should be:
set
07/24/06

23864Code Replacement
page 864, first shaded code section (VB) replace first 2 lines with the following lines:

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Text
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls
07/24/06

23864Error in Code/Text
page 864, first shaded code section (VB):

add a space and underscore at end of the current 4th line
07/24/06

23885Error in Code
page 885, 3rd shaded code section, line 1:

code reads:
Public Function RaiseCallbackEvent(ByVal eventArgument As String) As String

should be:
Public Sub RaiseCallbackEvent(ByVal eventArgument As String) _
07/24/06

23885Code Replacement
page 885, 3rd shaded code section, replace last 2 code lines with:

End Sub

Public Function GetCallbackResult() As String _
Implements System.Web.UI.ICallBackEventHandler.GetCallbackResult

Return "Valid Data"
End Function
07/24/06

23885Error in Code
page 885, C# code section, first line:

code reads:
writer

should be:
output
07/24/06

23886Error in Code
page 886, 2nd shaded code section, 2nd line, first occurance of string should be void
07/24/06

23886Code Replacement
page 886, 2nd shaded code section, replace last 3 lines with:

}

public string GetCallbackResult()
{
return "Valid Data";
}

#endregion
07/24/06

23898Error in Code
page 898 listing 23-27, 2nd shaded code section line 5:
add space and underscore at end of line
07/24/06

23900, 902Errors in Text (Add Spaces)
page 900 listing 23-28, 3rd line: add space and underscore at end of line

page 902 listing 23-30 line 4: add space and underscore at end of line
07/24/06

23908Error in Code/Text
page 908 listing 23-33, line 17:

code reads:
ID=" TemplatedControl1"

should be:
ID="TemplatedControl1"
07/24/06

23925Code Addition
page 925, listing 23-40:

add the following new line before the first code line:
Imports System.Web.UI.Design
07/24/06

23925Code Addition
page 925: listing 23-40, 2nd shaded code section (C#):

add the following new line before the first code line:
using System.Web.UI.Design;
07/24/06

23943Error in Code
page 943, listing 23-49, 2nd shaded code block (C#):

add semicolons at end of lines 6 and 7
07/24/06

23944Error in Code
page 944, listing 23-50, line 10:

code reads:
<img src="ImageHandler.ashx" />

should be:
<img src="Handler.ashx" />
07/24/06

24955Error in Code
page 955 shaded code line in middle of page:

code reads:
tblimp

should be:
tlbimp
07/24/06

24957Error in Text
page 957, listing 24-2, change the name of the listing to:
Using the NameComponent.dll
07/24/06

24958Errors in Code
page 958, 2nd chased code listing (C#):

delete these 3 lines:
string FirstName;
string LastName;
string FullName;

AND

current 12th line:
code reads:
FirstName = FirstName.Text.ToString();

should be:
Name.FirstName = FirstName.Text.ToString();

AND

current 17th line:
code reads:
LastName = LastName.Text.ToString();

should be:
Name.LastName = LastName.Text.ToString();

AND

current 22nd line:
code reads:
FullName = FullName.Text.ToString();

should be:
Name.FullName = FullName.Text.ToString();
07/24/06

24961Code Addition
page 961, listing 24-4, before 7th line from bottom of page () insert the following 3 additional lines:

<head runat="server">
<title>Using COM Components</title>
</head>
07/24/06

24962Error in Code
page 962, listing 24-4 first grey shaded code section, line 4:

code reads:
txtDenominator

should be:
Denominator
07/24/06

24962Error in Code
page 962, listing 24-4 first grey shaded code section, line 7 from end:

code reads:
cmdCalculate_Click

should be:
Calculate_Click
07/24/06

24962Code Deletion
page 962, C# section:

delete these 2 lines:
double Numerator;
double Denominator;
07/24/06

24962Code Replacement
page 962, c# section, replace the following lines:

Numerator = System.Convert.ToDouble(Numerator.Text.ToString());

Denominator = System.Convert.ToDouble(Denominator.Text.ToString());

Answer.Text = myDivide.DivideNumber(
ref Numerator,
ref Denominator).ToString();


with this one new line:

Answer.Text = Divide.DivideNumber(Numerator.Text, Denominator.Text);
07/24/06

24968Error in Code
page 968, single shaded code line at top of page:

code reads:
tblimp

should be:
tlbimp
07/24/06

24969Code Addition
2nd shaded code section:
Add this new line after the first line:
using System.Runtime.InteropServices;

AND

add this line after the current 3rd line:
[ComVisible(true)]
07/24/06

24972Error in Text
page 972, listing 24-8, 6th line from end:

text reads:
+

should be:
&
07/24/06

25992Error in Code
page 992, first shaded code block, line 6:

code reads:
<mobile:Command ID="cmdAdd" Runat="server">Add

should be:
<mobile:Command ID="cmdAdd" Runat="server" OnClick="cmdAdd_Click">Add
07/24/06

251019Error in Text
page 1019, listing 25-14:

delete ">" at end of last line on this page
07/24/06

251019Code/Text Addition
page 1019, listing 25-14:

insert the following new line after the last line on this page:
OnClick="cmdAddHidden_Click">
07/24/06

251020Error in Code
page 1020, listing 25-14, first shaded code block:

delete ">" at end of current 2nd line

AND

insert the following new line after the current 2nd line:

OnClick="cmdAddHidden_Click">
07/24/06

261028Error in Text
page 1028 next to last paragraph before Exposing Custom Datasets as SOAP last line in URL:

text reads:
2000

should be:
2004
07/24/06

261042Error in Code
page 1042, last line of code at bottom of page:

code reads:
<int xmlns="http://tempuri.org/">7</int>

should be:
<int xmlns="http://www.wrox.com/addition/">7</int>
07/24/06

261050Error in Code
page 1050, listing 26-18, first shaded code section (VB) line 2):

code reads:
<WebServiceBinding(ConformanceClaims:=WsiClaims.BasicProfile1_1, _

should be:
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1, _
07/24/06

261050Error in Code
page 1050 2nd shaded code section (C#) 5th line:

code reads:
public myHeader HelloHeader;

should be:
public HelloHeader myHeader;
07/24/06

261050Error in Code
page 1050 2nd shaded code section (C#), before last 2 lines (both are } ):

insert a new line with another "}" and align it with else a few lines above it
07/24/06

261052Error in Text
page 1052 first paragraph after the top code section, line 1:

text reads:
WebMethod, HelloWorld

should be:
web service, HelloSoapHeader
07/24/06

261054Error in Code
page 1054, 2nd shaded code section, (C#), 3rd code line:
delete private
07/24/06

261054Error in Code
page 1054, first paragraph after the code, line 1:

code reads:
remove

should be:
first provide an
07/24/06

261055Error in Code
page 1055, listing 26-25, line 5:

code reads:
<WebServiceBinding(ConformanceClaims:=WsiClaims.BasicProfile1_1,

should be:
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1,
07/24/06

261056Error in Code
page 1056, listing 26-25, 2nd shaded code section, (C#) line 7:

code reads:
public class Service : System.Web.Services.WebService

should be:
public class Async : System.Web.Services.WebService
07/24/06

261057Error in Code
page 1057, 2nd shaded code section (C#):

9th line (x += 1) add a semicolon to the end
07/24/06

271064Error in Code
page 1064 listing 27-5, first shaded code section (VB) line 4:

code reads:
ConfigurationSettings

should be:
ConfigurationManager
07/24/06

271064Error in Code
page 1064 listing 27-5, 2nd shaded code section (C#) line 5:

code reads:
ConfigurationSettings

should be:
ConfigurationManager
07/24/06

271067Errors in Code
page 1067, shaded code section at bottom of page:
line 5:

first character on line should be lower case c instead of upper

AND

line 9:

code reads:
CustomStateProviderNamespace.CustomStateProviderSateProvider"/>

should be:
CustomStateProviderNamespace.CustomStateProvider"/>

AND

line 11:

</sesisonState>

should be:
</sessionState>
07/24/06

271077Error in Code
page 1077, 3rd shaded code section, lines 3 and 4, in both lines:

code reads:
verb

should be:
verbs
07/24/06

271078Error in Code
page 1078, last line on page, beginning of line:

code reads:
master

should be:
masterPageFile
07/24/06

271079Error in Code
page 1079, top of page shaded section, lines 5 and 7:

code reads:
<imports> and </imports>

should be:
<namespaces> and </namespaces>
07/24/06

271079Error in Text
page 1079, bullet list, last bullet:

text reads:
master

should be:
masterPageFile
07/24/06

271079Error in Code
page 1079, shaded code section at bottom of page:

code reads:
<pages master

should be:
<pages masterPageFile
07/24/06

271080Error in Text
page 1080, bullet list, first bullet:

text reads:
Imports

should be:
namespaces
07/24/06

271080Error in Text
page 1080, 2nd paragraph of text, lines 1 and 2 and listing 27-9, 3rd line and paragraph after listing 27-9, lines 2 and 3:

text reads:
configExternalSource

should be:
configSource
07/24/06

271081Remove Code
page 1081, code listing in middle of page:

delete these lines:

idealTime=”10”
requestPriority="High"
appRequestQueueLimit="100"
07/24/06

271083Error in Text
page 1083:

Under Request Priority heading, please add the following as a note:

Although this attribute appears in the httpRuntime documentation, VisualStudio 2005 throws a compilation error saying requestPriority is not a valid attribute.
07/24/06

271081Error in Code
page 1081: 4th line from end of code:

code reads:
Kernal

should be:
Kernel
07/24/06

271082Error in Text
page 1082:

delete the Application shutdown Time heading and the paragraph under it
07/24/06

271084Error in Text
page 1084, under Output Caching, first line:

text reads:
Kernal

should be:
Kernel
07/24/06

271092Error in Code
page 1092 and 1093, listings 27-16 and 26-17, first shaded code section in each (VB):

4th line in each:

code reads:
System.Web.Configuration.WebConfigurationManager.OpenMachineConfiguration()

should be:
System.Configuration.ConfigurationManager.OpenMachineConfiguration()
07/24/06

271093Error in Code
page 1093, listings 27-16 and 26-17, top shaded code section on page (C#) and shaded code section in 26-17 (C#):

4th line in each:

code reads:
System.Web.Configuration.WebConfigurationManager.OpenMachineConfiguration();

should be:
System.Configuration.ConfigurationManager.OpenMachineConfiguration();
07/24/06

1195-1253Updated Book Index
We have updated the index including additional pages of index entries. The new version of the index is included in the printed book starting with the 3rd printing and can be downloaded from http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764576100,descCd-download_code.html
12/20/05