Microsoft KB Archive/930739

From BetaArchive Wiki
Knowledge Base


MCTS Self-Paced Training Kit (Exam 70-528): Microsoft .NET Framework 2.0 Web-Based Client Development Comments and Corrections

Article ID: 930739

Article Last Modified on 8/22/2007



APPLIES TO

  • MCTS Self-Paced Training Kit (Exam 70-528): Microsoft .NET Framework 2.0 Web-Based Client Development, ISBN 0-7356-2334-1



SUMMARY

This article contains comments, corrections, and information about known errors relating to the Microsoft Press book MCTS Self-Paced Training Kit (Exam 70-528): Microsoft .NET Framework 2.0 Web-Based Client Development, 0-7356-2334-1.

The following topics are covered:

  • Test Question: 528P_5.2.5_01 Marks correct answer as incorrect
  • Test Question: Answer to Nested master file question is incorrect
  • Page 98: Label can also be rendered as a <label> tag
  • Page 102: Incorrect title in Figure 3-3
  • Page 112: HotSpot should be ImageMap
  • Page 136: Control class needs to be replaced with CompositeControl class
  • Page 149: Label2 should be changed to Label1
  • Page 159: Incorrect class used
  • Page 160: Method used instead of event
  • Page 162 and 163: Incorrect property used in code example
  • Page 173: Incorrect description of Figure 3-33
  • Page 173: UpperAlpha used in place of UpperRoman
  • Page 186: Incorrect class used in Summary
  • Page 207: Definition of MenuItemBinding object incorrect
  • Page 207: "nodes" should be "items"
  • Pages 214-215: Update customer ID code needs to be removed
  • Page 219: AdServer should be AdRotator
  • Pages 233-234: LoadOption values are obsolete and incorrect
  • Page 255: Phrase "retrieves the populated DataSet," repeated incorrectly
  • Page 274: AddSchemaWithKey should be replaced with AddWithKey
  • Page 274: AddWithPrimaryKey should be replaced with AddWithKey
  • Page 305: PreserveCurrentValues should be replaced with PreserveChanges
  • Page 306: The word "connections" should be replaced with "commands"
  • Page 351: XmlTextWrite should be replaced with XmlTextReader
  • Page 364: SelectElementsByTagName should be changed to GetElementsByTagName
  • Page 477: Figure 6-4 is incorrect and should be disregarded
  • Page 483: "if" should be replaced with "of"
  • Page 551: The file extension .axd is incorrectly printed twice
  • Page 593: "master=" used in place of "MasterPageFile="
  • Page 633: InitComplete should be GenerateModeList
  • Page 660: Incorrect brackets used in C# code sample
  • Page 687: AddUsersToRoles incorrectly listed twice


MORE INFORMATION

Test Question: 528P_5.2.5_01 Marks correct answer as incorrect

On the Readiness Review assessment, test question 528P_5.2.5_01 indicates that answer 2 is correct. The correct answer is 4.

To make a skin optional, define a SkinID property. Named skins do not automatically apply to controls by type. Instead, you explicitly apply a named skin to a control by setting the control's SkinID property. Creating named skins allows you to set different skins for different instances of the same control in an application.

Test Question: Answer to Nested master file question is incorrect

On the Readiness Review assessment, the answer to the following question is incorrect:

Which of the following is a valid declaration for a nested master file?

The answer reads:

<%@ Master Language="VB" master="Blue.master"%>


It should read:

<%@ Master Language="VB" MasterPageFile="Blue.master"%>



Page 98: Label can also be rendered as a <label> tag

On page 98, the second to the last sentence of the second paragraph reads:

"The Literal control does not provide substantial functionality and does not add any HTML elementrs to the Web page where the Label is rendered as a tag."

It should read:

"The Literal control does not provide substantial functionality and does not add any HTML elementrs to the Web page where the Label is rendered as a or a <label> tag."

Page 102: Incorrect title in Figure 3-3

On page 102, the title of the rightmost diagram in Figure 303 reads:

"Table"

It should read:

"TableCell"

Page 112: HotSpot should be ImageMap

On page 112, the 4th sentence in the "Understanding the HotSpotMode Property" paragraph contains an incorrect control.

Change:
"This means that you can specify the HotSpotMode on the ImageMap control to set a default HotSpot behavior, but the HotSpotMode of the HotSpot must be set to NotSet to inherit the behavior from the HotSpot."

To:
"This means that you can specify the HotSpotMode on the ImageMap control to set a default HotSpot behavior, but the HotSpotMode of the HotSpot must be set to NotSet to inherit the behavior from the ImageMap."

Page 136: Control class needs to be replaced with CompositeControl class

On page 136, the first sentence of the second to the last paragraph reads:

"The Wizard control inherits from the Control class, and the BaseWizardStep inherits from View, as shows in Figure 3-20."

It should read:

"The Wizard control inherits from the CompositeControl class, and the BaseWizardStep inherits from View, as shows in Figure 3-20."

Page 149: Label2 should be changed to Label1

On page 149, the second sentence of step 3 reads:

"Add code to this method that places the PostBackValue into Label2."

It should read:

"Add code to this method that places the PostBackValue into Label1."

Page 159: Incorrect class used

Page 159, the first sentence under Figure 3-25 reads:

"The DataBoundControl class has a method called DataBind."

It should read:

"The BaseDataBoundControl class has a method called DataBind."

Page 160: Method used instead of event

On page 160, the last sentence of the first paragraph reads:

"The data-bound control automatically connects to the data source control at run time by calling the DataBind method on this control, which also raises the DataBound method."

It should read:

"The data-bound control automatically connects to the data source control at run time by calling the DataBind method on this control, which also raises the DataBound event."

Page 162 and 163: Incorrect property used in code example

On pages 162, the second code example at the bottom of the page reads:

<%# Eval("Vin", "{0:C}" ) %>


It should read:

<%# Eval("Price", "{0:C}" ) %>


On page 163, the second code example at the top of the page reads:

<%# Bind("Vin", "{0:C}" ) %>


It should read:

<%# Bind("Price", "{0:C}" ) %>



Page 173: Incorrect description of Figure 3-33

On page 173, the paragraph immediately preceeding Figure 3-33 is incorrect and should be disregarded.

Page 173: UpperAlpha used in place of UpperRoman

On page 173, the first sentence of the last paragraph reads:

"If the BulletList control is set to render numbers, you can set the BulletStyle to LowerAlpha, UpperAlpha, LowerRoman, and UpperAlpha fields."

It should read:

"If the BulletList control is set to render numbers, you can set the BulletStyle to LowerAlpha, UpperAlpha, LowerRoman, and UpperRoman fields."

Page 186: Incorrect class used in Summary

On page 186, in the C# code example, the 5th line from the bottom of the page reads:

/// Summary description for EmployeeList



It should read:

/// Summary description for CarList



Page 207: Definition of MenuItemBinding object incorrect

On page 207, the first sentence of the last paragraph contains an incorrect definition for MenuItemBinding.

Change:
"The Menu control contains a DataBindings property that is a collection of MenuItemBinding objects that define the binding between data items and TreeNodes."

To:
"The Menu control contains a DataBindings property that is a collection of MenuItemBinding objects that define the binding between a data item and the menu item it is binding to in a Menu control."

Page 207: "nodes" should be "items"

On page 207, the second sentence of the last paragraph needs to have "nodes" changed to "items".

Change:
"You can specify the criteria for binding and the data item properties to display in the nodes."

To:
"You can specify the criteria for binding and the data item properties to display in the items."

Pages 214-215: Update customer ID code needs to be removed

On pages 214 & 215, a line of code that is used to update the customer ID needs to be removed.

Delete the following line from the VB code (line 21):

customerFound.Id = updateCustomer.Id


Delete the following line from the C# code (line 34):

customerFound.Id = updateCustomer.Id;



Page 219: AdServer should be AdRotator

On page 219, the control in Answer C to Question 1 is incorrect.

Change:
"C. Use the AdServer control and create an XML file with configuration of the control."

To:
"C. Use the AdRotator control and create an XML file with configuration of the control."

Pages 233-234: LoadOption values are obsolete and incorrect

On pages 233-234, the values in the two bullet points on page 233 and the bullet point on page 234 reads:

"OverwriteRow Overwrites the original DataRowVersion and the current DataRowVersion and changes the RowState to Unchanged. New rows also have the RowState of Unchanged.

PreserveCurrentValues (default) Overwrites the original DataRowVersion, but does not modify the current DataRowVersion. New rows have the RowState of Unchanged as well.

UpdateCurrentValues Overwrites the current DataRowVersion, but does not modify the the original DataRowVersion. New rows have the RowState of Added. Rows that had a RowState of Unchanged have the RowState of Unchanged if the current DataRowVersion is the same as the original DataRowVersion, but if they are different, the RowState is Modified."

They should read:

"OverwriteChanges Overwrites the original DataRowVersion and the current DataRowVersion and changes the RowState to Unchanged. New rows also have the RowState of Unchanged.

PreserveChanges (default) Overwrites the original DataRowVersion, but does not modify the current DataRowVersion. New rows have the RowState of Unchanged as well.

Upsert Overwrites the current DataRowVersion, but does not modify the the original DataRowVersion. New rows have the RowState of Added. Rows that had a RowState of Unchanged have the RowState of Unchanged if the current DataRowVersion is the same as the original DataRowVersion, but if they are different, the RowState is Modified."

Page 255: Phrase "retrieves the populated DataSet," repeated incorrectly

On page 255, the last sentence of the paragraph under the heading "Binding to the DataSet Object" reads:

"The code sample retrieves the populated DataSet, retrieves the populated DataSet, and binds the DataSet to the GridView controls:"

It should read:

"The code sample retrieves the populated DataSet and binds the DataSet to the GridView controls:"

Page 274: AddSchemaWithKey should be replaced with AddWithKey

On page 274, the 5th sentence of the first paragraph reads:

"The AddSchemaWithKey is selected, which means that if a new DataTable is added to the copy DataSet object, the new DataTable and its data are added to the original DataSet object."

It should read:

"The AddWithKey is selected, which means that if a new DataTable is added to the copy DataSet object, the new DataTable and its data are added to the original DataSet object."

Page 274: AddWithPrimaryKey should be replaced with AddWithKey

On page 274, the second bullet point reads:

"AddWithPrimaryKey Adds the necessary DataTable, DataColumn, and PrimaryKey objects to complete the schema."

It should read:

"AddWithKey Adds the necessary DataTable, DataColumn, and PrimaryKey objects to complete the schema."

Page 305: PreserveCurrentValues should be replaced with PreserveChanges

On page 305, the first sentence of the first paragraph reads:

"One option is to load the DataTable object again, using the default PreserveCurrentValues enumeration value, which loads the original DataRowVersion with the data from the database while leaving the current DataRowVersion untouched."

It should read:

"One option is to load the DataTable object again, using the default PreserveChanges enumeration value, which loads the original DataRowVersion with the data from the database while leaving the current DataRowVersion untouched."

Page 306: The word "connections" should be replaced with "commands"

On page 306, the last sentence of the second paragraph reads:

"A MARS solution is to simply create two connections: one for the author list and one for the total of royalties query."

It should read:

"A MARS solution is to simply create two commands: one for the author list and one for the total of royalties query."

Page 351: XmlTextWrite should be replaced with XmlTextReader

On page 351, the first sentence of the XmlTextReader definition reads:

"The XmlTextWrite provides non-cached, forward-only access to XML data."

It should read:

"The XmlTextReader provides non-cached, forward-only access to XML data."

Page 364: SelectElementsByTagName should be changed to GetElementsByTagName

On page 364, the last sentence on the page reads:

"Note that this method can perform an XPath lookup on any element or attribute, with much more querying flexibility; whereas, the SelectElementsByTagName is limited to a tag name."

It should read:

"Note that this method can perform an XPath lookup on any element or attribute, with much more querying flexibility; whereas, the GetElementsByTagName is limited to a tag name."

Page 477: Figure 6-4 is incorrect and should be disregarded

On page 477, Figure 6-4 is a copy of Figure 4-4 on page 241 and should be disregarded.

Page 483: "if" should be replaced with "of"

On page 483, the last sentence of the last paragraph reads:

"The NavigateTest3.aspx page contains a Label control called lbl-Data that is populated with the data from txtData if NavigateTest3.aspx, which was called by using a cross-page PostBack, as shown in the following example:"

It should read:

"The NavigateTest3.aspx page contains a Label control called lbl-Data that is populated with the data from txtData of NavigateTest3.aspx, which was called by using a cross-page PostBack, as shown in the following example:"

Page 551: The file extension .axd is incorrectly printed twice

On page 551, the second sentence of the first paragraph contains two references to the axd file extenion, the second reference needs to be removed and two additional extensions needs to be added.

Change:
"For example, IIS passes requests for .aspx, .axd, and .axd to the Aspnet_Isapi.dll file that performs the ASP.NET processing."

To:
"For example, IIS passes requests for .aspx, .axd, .ascx, and .asmx to the Aspnet_Isapi.dll file that performs the ASP.NET processing."

Page 593: "master=" used in place of "MasterPageFile="

On page 593, the first line in the VB and C# code reads:

'VB
<%@ Master Language="VB" master="Parent.master"%>

//C#
<%@ Master Language="C#" master="Parent.master"%>


They should read:

'VB
<%@ Master Language="VB" MasterPageFile="Parent.master"%>

//C#
<%@ Master Language="C#" MasterPageFile="Parent.master"%>



Page 633: InitComplete should be GenerateModeList

On page 633, Step 4 contains an incorrect method in the VB and C# code samples.

Change:

'VB
Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs)
AddHandler Page.InitComplete, AddressOf InitComplete
End Sub

//C#
void Page_Init(object sender, EventArgs e)
{
Page.InitComplete += new EventHandler(InitComplete);
}


To:

'VB
Sub Page_Init(ByVal sender As Object, ByVal e As EventArgs)
AddHandler Page.InitComplete, AddressOf GenerateModeList
End Sub

//C#
void Page_Init(object sender, EventArgs e)
{
Page.InitComplete += new EventHandler(GenerateModeList);
}


Page 660: Incorrect brackets used in C# code sample

On page 660, the 7th line down in the C# code reads:

Culture = Request.Form("DropDownList1");


It should read:

Culture = Request.Form["DropDownList1"];



Page 687: AddUsersToRoles incorrectly listed twice

On page 687, the first bullet point under the Note box reads:

"AddUserToRole, AddUsersToRoles, AddUsersToRole, and AddUsersToRoles Adds a user to a role"

It should read:

"AddUserToRole, AddUsersToRoles, and AddUsersToRole Adds a user to a role"

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: 0-7356-2334-1 978-0-7356-2334-7

Keywords: KB930739