Errata

Learning ASP.NET 3.5

Errata for Learning ASP.NET 3.5

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
6.5
paragraph 27

"Type in some text on the page, select it, and apply the paragraph style to it by selecting "Paragraph <p>" from the Block Format drop-down in the Style Application toolbar (indicated in Figure 6-5)."

The drop down list is found on the Formatting toolbar rather than the Style Application toolbar as stated.

Anonymous  Oct 01, 2008 
11.9
Putting it all together

If you run the code, add an item to the cart and then delete it you get error Incorrect syntax near ')'. on line
Line 68: gvCart.DataBind()

Code seems the same if you type it out or download the code examples.

Anonymous  Aug 13, 2008 
Printed Page 15
Last paragraph, seventh sentence

I have Learning ASP.NET 3.5 2nd Edition. One of the sentences on page #15 reads "You can also play with the border of the label, too." The word "too" is redundant with "also." I recommend removing "too" from the sentence.

Jay Schmoll  Nov 29, 2009 
Printed Page 19
3

The tip indicates that HTML server controls are not commonly used and won't appear in this book.

That is incorrect- on p.53 you actually do create an HTML server control as indicated in the third paragraph. It just stood out to me.

Todd Kleinhans  Feb 24, 2009 
Printed Page 28
Top

The sample C# (and VB for that matter) code I downloaded for example 2-1 does not work like the book implies. I had to add the if-else logic to the code to get the desired behavior. When I attempted to use the downloaded code it complained about the fact that those button's don't exist on the page. I ended up with:
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
lblFirstPageLoad.Text = DateTime.Now.ToString();
}
else
{
lblPostBackPageLoad.Text = DateTime.Now.ToString();
}
}
//protected void btnPartialUpdate_Click(object sender, EventArgs e)
//{
// lblPartialUpdate.Text = DateTime.Now.ToString();
//}
//protected void btnOtherPartialUpdate_Click(object sender, EventArgs e)
//{
// lblOtherPartialUpdate.Text = DateTime.Now.ToString();
//}

}

which works as desired.

Grayson  Feb 11, 2009 
Printed Page 29
Second paragraph, second sentence

I purchased Learning ASP.NET 3.5 2nd Edition. On page 29, in the second paragraph, the book lists "Open the code behind file, navigate to the Page_Load method, and then click in the left margin next to the line with the lblPageLoad.Text instruction." In that sentence, "lblPageLoad.Text" should be replaced with "lblPostBackPageLoad.Text."

Jay Schmoll  Nov 29, 2009 
Printed Page 63
Eighth paragraph

I purchased Learning ASP.NET 3.5 2nd Edition. On page 63, by the eighth bullet point, the phrase "The TextBox control is a relatively simply" appears. The word "simply" should be replaced with "simple."

Jay Schmoll  Nov 29, 2009 
Printed Page 71
7th paragraph, line 2, 2nd word

reads "just leave drag a..."
should read "just drag a..." with the word "leave" removed.

John Bair  Jan 02, 2009 
Printed Page 72
Third paragraph

I purchased Learning ASP.NET 3.5 2nd Edition. On page 72, in the third paragraph, the word "butttons" appears, which should be "buttons."

Jay Schmoll  Nov 29, 2009 
Printed Page 81
Line 3 and 4 of the code in Example 3-3

Dear O'Reilly,

First, your book is extremely well written!

While going through your code on Page 81,
I am converting from VB to C#.
I got errors while accessing the history point in the
History object.
I got red wavy lines under the "State" occurances.

------ here is my code:
protected void ScriptManager1_Navigate(object sender, HistoryEventArgs e)
{
String strRadioButtonList = String.Empty;
if ((e.State("RadioButtonList") != null))
{
strRadioButtonList = e.State("RadioButtonList");
}

------- and here is my syntax error:
Error 1 Non-invocable member 'System.Web.UI.HistoryEventArgs.State' cannot be used like a method. C:\Documents and Settings\Administrator\Desktop\407\AJAXHist\Default.aspx.cs 32 16 C:\...\AJAXHist\

------ I am running Visual Web Developer 2008:
Visual Studio 2008
Version 9.0.30729.1 SP

After downloading your zipped code, I couldn't find the example I was doing on Page 81. Is this Exercise 1, 2, 3, or 4? Or is part of the adventure works project?

Sorry for being confused,
tiM:)





Anonymous  Dec 01, 2008 
Printed Page 82
Second paragraph

I purchased Learning ASP.NET 3.5 2nd Edition. On page 82, in the second paragraph, the phrase "Back in Exercise 3-2" appears. It should read as "Back in Example 3-2."

Jay Schmoll  Nov 29, 2009 
Printed Page 85
Figure 3-8's explanation

I purchased Learning ASP.NET 3.5 2nd Edition. On page 85, for Figure 3-8, the following explanation appears: "When the user types in the TextBox, the watermarked style is applied, which shows an obvious change from the watermarked style." Something needs to change in the sentence, such as inserting the words "no longer" before the word "applied."

Jay Schmoll  Nov 29, 2009 
Printed Page 86
Second paragraph

I purchased Learning ASP.NET 3.5, 2nd Edition. On page 86, in the second paragraph, the book lists "Click on the Customer Name TextBox in Design view to bring up the smart tag, . . . ." No smart tag displays when I click on any TextBox. Note that I'm using Visual Web Developer 2008 with SP1. I could NOT successfully complete the example using the TextBoxWaterMarkExtender--not even by typing in the code displayed in Example 3-5. Is there some way I can get help completing the example?

Jay Schmoll  Nov 29, 2009 
Printed Page 103-104
Bottom of Page 103, continuing on to Page 104

Section on AJAX CollapsiblePanelExtender:

#1) All of the controls for this example were placed after the </div> tag...is that correct? (I chose to place the </div> tag after the controls).

#2) Upon execution, the ProductInfoHeader and Toggle start off OK
with the "expand" image and "Product Information" (and no ProductInfo)
> then 1st click, image changes to "collapse" but the ProductInfo display does not appear
> then 2nd click, image changes back to "expand" but the ProductInfo now appears
> this continues on with the toggle and ProductInfo display being out of sync



Anonymous  Aug 13, 2009 
PDF Page 182
5th line

&#65279;The RequiredFieldValidator ensures the user provides a value for your control, or in the case of drop drop-down lists, that the user picks something other than the default value.

In line 2 above there is an extra 'drop' it should read

&#65279;The RequiredFieldValidator ensures the user provides a value for your control, or in the case of drop-down lists, that the user picks something other than the default value.

Anonymous  Nov 26, 2008 
Printed Page 327
6th paragraph

I have successfully followed every chapter in this book up to Chapter 9. At the very start where I am instructed to:
Select Websit -> ASP.NET Configuration.
Click on Security tab

I do not get the page that's shown in figure 9-1 (as the book says). Instead I get the following message:
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.

The following message may help in diagnosing the problem: Unable to connect to SQL Server database.

I clicked the button to "Choose Data Store" and tried both links:
Select a single provider for all site management data
Select a different provider for each feature (advanced)

I eventually ended up with an error message similiar to the following:
Could not establish a connection to the database.
If you have not yet created the SQL Server database, exit the Web Site Administration tool, use the aspnet_regsql command-line utility to create and configure the database, and then return to this tool to set the provider.

I am using SQL Sever express 2005 and as mentioned I have successfully done every chapter 1 through 8. I have not attempted any of the Exercises at the end of any of the chapters.

Anonymous  Jan 19, 2009 
Printed Page 329-330
general

Could you please say what password(s) you used for the pre-created users in the example code?

Andrew  May 14, 2017 
Printed Page 351
Quiz question #6.

This confused me at least and doesn't seem to be correct...the question pertains to how many views the LoginStatus control has. The answer (page 562) indicates 2 (which is correct) but describes them as one for "anonymous users" and one for "logged-in users". The 2 views for LoginStatus, according to the Smart Tab, are "Logged In" and "Logged Out". It's the LoginView control which has views of "anonymous (template)" and "logged in (template)". The answer would seem more correct for the LoginView instead of LoginStatus.
Great book, BTW.

John Haas  Jan 17, 2011 
Printed Page 389
Line 3 inside code

font-family:Arial;Helvetica; sans-serif;

should be

font-famity:Arial, Helvetica, sans-serif;

The options are separated by commas and a semicolon should appear only at the end.

Anonymous  Sep 14, 2009 
Printed Page 418
Example 11-10. Cart.aspx.vb event handlers (contunued)

If there is no ProductID in Session("Cart"), that is, Session("Cart") is empty string, gvCart.DataBind() will throw exception.
The following is my version.

Original:
=====================================================================
' remove the trailing space and comma
If strCart.Length > 1 Then
strCart = strCart.Trim()
strCart = strCart.Substring(0, strCart.Length - 1)
End If

' put it back into Session
Session("Cart") = strCart
=====================================================================


Changed:
===================================================================== ' remove the trailing space and comma
If strCart.Length > 1 Then
strCart = strCart.Trim()
strCart = strCart.Substring(0, strCart.Length - 1)

' put it back into Session
Session("Cart") = strCart
Else
' remove Session object
Session.Remove("Cart")
End If
=====================================================================

This book is a great present for me.
Thanks a lot ^^

S.M. Kang  Oct 08, 2010