Microsoft KB Archive/268120

= Web Applications with Visual InterDev 6.0 Comments and Corrections =

Article ID: 268120

Article Last Modified on 2/12/2007

-

APPLIES TO


 * MSPRESS Web Applications with Microsoft Visual InterDev 6.0, MCSD Training Kit ISBN 0-7356-0967-5

-



This article was previously published under Q268120



SUMMARY
This article contains comments, corrections, and information about known errors relating to the Microsoft Press book Web Applications with Microsoft Visual InterDev 6.0, MCSD Training Kit, ISBN 0-7356-0967-5.

The following topics are covered:


 * Page 76: Step 2, Image Has Not Been Placed In Sidebar.htm
 * Pages 80 & 451: Correction To Question 2
 * Page 93: Incorrect Description Of cancelBubble Property
 * Page 150: ASP Buffering Is Disabled By Default
 * Page 172: Step 6 Is Incorrect
 * Page 175: In Code, Change &quot;outdate&quot; To &quot;indate&quot;
 * Page 177: In Code, Add Space Between &quot;option&quot; And &quot;value&quot;
 * Page 224: In Step 7 Click Next Not Save
 * Page 225: In Step 20 Click Open Not OK
 * Page 248: Change rsStudents.Open to rsEmployees.Open
 * Page 274-275: CDate Function Code Correction
 * Page 278: Code Correction
 * Page 467-468: Products.htm File Is Not Included On The CD-ROM
 * Lab 6, 7, 8 & 10: CDate Function Code Correction



Page 76: Step 2, Image Has Not Been Placed In Sidebar.htm
On page 76, in Step 2 of Exercise 2, the instruction asks you to place the insertion point below the Chateau St. Mark image at the top of the page. There is no image in the sidebar.htm file. You will need to insert the chateauLogo.gif image at the top of the page before proceeding.

To place the chateauLogo.gif image at the top of the page:

1. Place the insertion point at the top of the page.

2. On the HTML menu, click Image. The Insert Image dialog box appears.

3. For the picture source, enter or browse to the images/chateauLogo.gif file.

4. Click OK to insert the image.

You can then proceed with the remainder of the exercise as outlined in the book.

Pages 80 & 451: Correction To Question 2
Question 2 on pages 80 and 451 is incorrect. Change:

&quot;List the Visual InterDev version-control tools&quot;

To:

&quot;List the Visual InterDev Toolbox tools&quot;

Page 93: Incorrect Description Of cancelBubble Property
The description of the cancelBubble property on page 93 is incorrect. By setting the cancelBubble to True, you prevent the parent element from receiving the event. The note on page 96 contains the correct description.

Change:

&quot;By setting cancelBubble to False, you prevent the parent element from receiving the event. &quot;

To:

&quot;By setting cancelBubble to True, you prevent the parent element from receiving the event.&quot;

Page 150: ASP Buffering Is Disabled By Default
On page 150, the first sentence in the second paragraph incorrectly states that buffering is enabled by default for ASP applications.

Change:

&quot;Although buffering is enabled by default for ASP applications, you can use the IIS snap-in to disable buffering for an entire ASP application.&quot;

To:

&quot;Although buffering is disabled by default for ASP applications, you can use the IIS snap-in to enable buffering for an entire ASP application.&quot;

Page 172: Step 6 Is Incorrect
On page 172, Step 6 indicates that you will be able to open the Reservation Form. However, you will not activate a link to this form until page 175, Step 5.

Step 6 on page 172 should be omitted.

Additional Note: the menus are on the left, not the right.

Page 175: In Code, Change &quot;outdate&quot; To &quot;indate&quot;
On page 175, in the code sample at the top of the page, change &quot;outdate&quot; to &quot;indate&quot; in the fifth line.

Change:

Request.Form(&quot;outdate&quot;)

To:

Request.Form(&quot;indate&quot;)

Page 177: In Code, Add Space Between &quot;option&quot; And &quot;value&quot;
On page 177, in the sixth line of the code at the top of the page, there should be a space between &quot;option&quot; and &quot;value&quot;.

Change:

optionvalue=&quot;

To:

option value=&quot;

Page 224: In Step 7 Click Next Not Save
On page 224, in step 7, you will need to click Next to continue.

Change:

&quot;Type Data as the name of the DSN, and then click Save.&quot;

To:

&quot;Type Data as the name of the DSN, and then click Next.&quot;

Page 225: In Step 20 Click Open Not OK
On page 225, in step 20, you will need to click Open to continue to the next step.

Change:

&quot;Choose the Existing tab and browse for the Chateau.sql file in the Labs\Lab05\Partial folder, and then click OK.&quot;

To:

&quot;Choose the Existing tab and browse for the Chateau.sql file in the Labs\Lab05\Partial folder, and then click Open.&quot;

Page 248: Change rsStudents.Open to rsEmployees.Open
On page 248, in the sample code under &quot;Using an Explicit Connection Object&quot;, rsStudents.Open should be rsEmployees.Open.

Change:

rsStudents.Open &quot;Select * from Employees&quot;, cnData

To:

rsEmployees.Open &quot;Select * from Employees&quot;, cnData

Page 274-275: CDate Function Code Correction
To avoid errors in Lab 6, add single quotes around the CDate function as shown below:

On page 274, change:

SQL = &quot;Insert Into Guests(FirstName, LastName, SmokingPref, &quot; & _   &quot;CreditType, CardNumber, ExpDate)&quot; & _ &quot;Values('&quot; & Trim(Request.Form(&quot;FirstName&quot;)) & &quot;', '&quot; & _   Trim(Request.Form(&quot;LastName&quot;)) & &quot;', &quot; & SmokingPref & _    &quot;, &quot; & CInt(CreditType) & &quot;, '&quot; &    Trim(Request.Form(&quot;CardNumber&quot;)) & _    &quot;', &quot; & CDate(Request.Form(&quot;ExpDate&quot;)) & &quot;)&quot; To:

SQL = &quot;Insert Into Guests(FirstName, LastName, SmokingPref, &quot; & _   &quot;CreditType, CardNumber, ExpDate)&quot; & _ &quot;Values('&quot; & Trim(Request.Form(&quot;FirstName&quot;)) & &quot;', '&quot; & _   Trim(Request.Form(&quot;LastName&quot;)) & &quot;', &quot; & SmokingPref & _    &quot;, &quot; & CInt(CreditType) & &quot;, '&quot; &    Trim(Request.Form(&quot;CardNumber&quot;)) & _    &quot;', '&quot; & CDate(Request.Form(&quot;ExpDate&quot;)) & &quot;')&quot;

On page 275, change:

SQL = &quot;Update Guests Set FirstName = '&quot; & _ Trim(Request.Form(&quot;FirstName&quot;)) & _ &quot;', &quot; & &quot;SmokingPref = &quot; & SmokingPref & &quot;, &quot; & _ &quot;ExpDate = &quot; & CDate(Request.Form(&quot;ExpDate&quot;)) & _ &quot; Where GuestID = &quot; & GuestID To: SQL = &quot;Update Guests Set FirstName = '&quot; & _ Trim(Request.Form(&quot;FirstName&quot;)) & _ &quot;', &quot; & &quot;SmokingPref = &quot; & SmokingPref & &quot;, &quot; & _ &quot;ExpDate = '&quot; & CDate(Request.Form(&quot;ExpDate&quot;)) & &quot;' &quot; & _ &quot;Where GuestID = &quot; & GuestID

Page 278: Code Correction
On page 278, in step 8, change the first line of code as follows.

Change:

If cdGuests.Recordset.EOF And cdGuests.Recordset.EOF Then To:

If cdGuests.Recordset.BOF And cdGuests.Recordset.EOF Then

Page 467-468: Products.htm File Is Not Included On The CD-ROM
Pages 467 and 468 in Appendix B mention the Products.htm files provided on the companion CD. These sample files were not included on the CD-ROM. However, Microsoft Press has created AppendB.exe, a self-extracting executable file that contains the missing files.

The following file is available for download from the Microsoft Download Center:

AppendB.exe

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

More Information
On page 467, change the last sentence in the first paragraph under the section titled &quot;Implementing the VBScript Language&quot;,

From:

&quot;Use the page provided in the Practice\AppendB directory located on your hard drive or on the companion CD.&quot;

To:

&quot;Use the page provided in the AppendB directory located on your hard drive or on the companion CD.&quot;

On page 468, change Step 4

From:

&quot;In the Open File dialog, click the Existing tab, browse to the Practice\Ch03 folder, and select the Products.htm file.&quot;

To:

&quot;In the Open File dialog, click the Existing tab, browse to the WebAppsMCSD\AppendB folder, and select the Products.htm file.&quot;

Lab 6, 7, 8 & 10: CDate Function Code Correction
To avoid errors in Lab 6, 7, 8 and 10, add single quotes around the CDate function in the following files:

.\labs\lab06\solution\checkin.asp

.\labs\lab07\partial\checkin.asp

.\labs\lab07\solution\checkin.asp

.\labs\lab08\partial\checkin.asp

.\labs\lab08\solution\checkin.asp

.\labs\lab10\partial\checkin.asp

.\labs\solution\chateau_local\checkin.asp

Change:

&quot;', &quot; & CDate(Request.Form(&quot;ExpDate&quot;)) & &quot;)&quot;

To:

&quot;', '&quot; & CDate(Request.Form(&quot;ExpDate&quot;)) & &quot;')&quot;

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.

Additional query words: TKBOOK DEVBOOK VSTUDIO INTERDEV 0-7356-0967-5

Keywords: kbdownload kbdocerr kbdocfix kbinfo KB268120

-

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

© Microsoft Corporation. All rights reserved.