Microsoft KB Archive/905042

= Microsoft ASP.NET 2.0 Step By Step comments and corrections =

Article ID: 905042

Article Last Modified on 8/1/2007

-

APPLIES TO


 * Microsoft ASP.NET 2.0 Step By Step, ISBN 0-7356-2201-9

-



SUMMARY
This article contains comments, corrections, and information about known errors relating to the Microsoft Press book Microsoft ASP.NET 2.0 Step By Step, ISBN 0-7356-2201-9.

The following topics are covered:


 * Pages 2 and 3: Clarification on virtual directory name
 * Page 3: Wrong location for helloworld.htm file referenced
 * Page 35: Extra using line in code sample.
 * Page 36: Method2 defined rather than Method1 in Listing 2-1
 * Page 42: ASP.NET Web Site template referenced rather than Empty Web Site
 * Page 86: Extra step needed between steps 1 and 2 of the Using View State process
 * Page 97: Incorrect control name used in Step 10
 * Page 255: \\ should be \
 * Page 260-261: form should be farm
 * Page 268: Form_Load method referenced in place of Page_Load
 * Page 269: TextBoxSummary referenced in place of LabelSummary
 * Page 360: Error in code sample



Pages 2 and 3: Clarification on virtual directory name
After installing the Code Samples as described on pages xxv and xxvi, a virtual directory is created in IIS named aspnet2sbs which contains the sample code. The last line on on Page 2 and Step 3 on Page 3 both refer to a virtual directory named ASPNETStepByStep.

In those instances and where ever else in the content a virtual directory containing the code samples is referred to, replace ASPNETStepByStep with aspnet2sbs.

Page 3: Wrong location for helloworld.htm file referenced
On page 3, step 3 reads:

&quot;After the TELNET client connects, type the following GET command (assuming you have a virtual directory named aspnet2sbs on you machine, containing a file named HelloWorld.HTM):

C:/> GET //aspnet2sbs/helloworld.htm&quot;

It should read: &quot;After the TELNET client connects, type the following GET command (assuming you have a virtual directory named aspnet2sbs on you machine, containing a file named HelloWorld.HTM in the /CS/Chapter02/content subdirectory):

C:/> GET //aspnet2sbs/CS/Chapter02/content/helloworld.htm&quot;

Page 35: Extra using line in code sample.
On page 35, the first three lines of Listing 2-1 read:

using System; // partial1.cs using System;

The first line should be removed, so they read:

// partial1.cs using System;

Page 36: Method2 defined rather than Method1 in Listing 2-1
On page 36, the definition of Method2 in Listing 2-1 reads:

public void Method2 {   Console.WriteLine(&quot;SplitMe Method2&quot;); }

It should read:

public void Method1 {   Console.WriteLine(&quot;SplitMe Method1&quot;); }

Page 42: ASP.NET Web Site template referenced rather than Empty Web Site
On page 42, the first sentence of the last paragraph reads:

&quot;Selecting ASP.NET Web Site causes Visual Studio to generate a directory structure similar to the one generated by ASP.NET Web Site.&quot;

It should read:

&quot;Selecting ASP.NET Web Site causes Visual Studio to generate a directory structure similar to the one generated by Empty Web Site.&quot;

Page 86: Extra step needed between steps 1 and 2 of the Using View State process
On page 86, an additional step should be inserted between steps 1 and 2 of the Using View State process that reads:

&quot;Add System.Collections to the list of using directives.

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Text;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Collections &quot;

Page 97: Incorrect control name used in Step 10
The first two sentences of step 10 read:

&quot;Build the project and add the User control to the ControlORama UsePalindromeCheckerControls.aspx page. You can pick up the User control directly from the toolbox and drop it on to the page.&quot;

They should read:

&quot;Build the project and add the PalindromeCheckerCompositeControl control to the ControlORama UsePalindromeCheckerControls.aspx page. You can pick up the PalindromeCheckerCompositeControl control directly from the toolbox and drop it on to the page.&quot;

Page 255: \\ should be \
On page 255, the ninth line of the code sample for step 7 is incorrect.

Change:

&quot;c:\\inetpub\\wwwroot\\SessionState\\App_Data\\ASPDotNetStepByStep.mdb&quot;;&quot;

To:

&quot;c:\inetpub\wwwroot\SessionState\App_Data\ASPDotNetStepByStep.mdb&quot;;&quot;

Page 260-261: form should be farm
On pages 260, the last sentence of the first paragraph refers to a Web farm a Web form.

Change:

&quot;In addition, the in process Session manager is confined to a single machine, meaning you can’t use it in a Web form.&quot;

To:

&quot;In addition, the in process Session manager is confined to a single machine, meaning you can’t use it in a Web farm.&quot;

On page 260, the second-to-last sentence ofthe first bullet point refers to a Web farm a Web form.

Change:

&quot;To run in a Web form, you would direct all your applications to go to the same place to retrieve session information.&quot;

To:

&quot;To run in a Web farm, you would direct all your applications to go to the same place to retrieve session information.&quot;

On page 260, the last sentence ofthe second bullet point refers to a Web farm a Web form.

Change:

&quot;Use this option when you want to run your server from within a Web form when you want session state to be durable and safe.&quot;

To:

&quot;Use this option when you want to run your server from within a Web farm when you want session state to be durable and safe.&quot;

On page 261, the last sentence of the &quot;Storing Session State InProc&quot; section refers to a Web farm a Web form.

Change:

&quot;Your application will retrieve and store session information very quickly, but it will be available only to your application (and not on a Web form).&quot;

To:

&quot;Your application will retrieve and store session information very quickly, but it will be available only to your application (and not on a Web farm).&quot;

Page 268: Form_Load method referenced in place of Page_Load
On page 268, the first sentence of step 11 reads:

&quot;Finally, edit the Form_Load method to collect the information from each of the controls in the Wizard.&quot;

It should read:

&quot;Finally, edit the Page_Load method to collect the information from each of the controls in the Wizard.&quot;

Page 269: TextBoxSummary referenced in place of LabelSummary
On page 269, the 17th line of the code sample reads:

this.TextBoxSummary.Text = strSummary;

It should read:

this.LabelSummary.Text = strSummary;

Page 360: Error in code sample
On page 360, the &quot;add&quot; section of the code sample for step 6 is incorrect.

Change: 

To: 

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.

The print number of the book is located on the copyright page in the form of a string of numbers. For example: &quot;2 3 4 5 6 7 8 0 QWT 9 8 76 5 4&quot;. The first number in the string is the the print number. In this example, the print number is 2.

Additional query words: 0-7356-2201-9 978-0-7356-2201-2

Keywords: kbinfo kbdocfix kbdocerr KB905042

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.