Submit Errata

Errata (2nd Printing / January 2004)

Coming soon... (1 known error is Recipe 11.2 on p139 is cut off)

Errata (1st Printing / June 2003)

PageCorrection
0

Scott Guthrie's Foreword didn't make it into the book or on the cover. It is in the January 2004 second printing.

0 Two bios did not make it into the book:

Jose Fuentes
Jose Fuentes likes to be thought of as a (do it guy) when others say it can't be done, he finds a way. This is a guy that goes to bed and wakes up in the middle of the night with answers to his problems. Jose lives in Tallahassee, FL with his wife and young boy. He specializes in windows application development using VB.Net though he also handles all the ASP.Net they can throw at him. He has worked in the development field for 6 years professionally but has been in hobby developer since he was 12 using GWBasic and many more. When he's not spending endless amounts of time developing, you can find him playing with his family. Other activities include computer art, his favorite piece that he has done so far is (visualize) a big computer monitor (LCD or plasma) hanging on the wall. It then experiences mans rage and has a keyboard shoved though the screen, leaving all it's circuits exposed and flashes here and there and broken glass, keys popping out. Very abstract art, using many old motherboards and broken glass and all. His favorite motto is "if it can't be done, you haven't tried hard enough".

He can be reached at dark7622@yahoo.com

Jeff Widmer
Jeff Widmer is Lead Developer for the Xbox.com web site (http://www.xbox.com) where he works with Microsoft Content Management Server 2002, Microsoft Commerce Server 2002, and the .NET Framework to produce an international web site that receives over 4 million page views per month. Jeff has been working with VB.NET, C#, and ASP.NET since the first Beta was released in 2000. He is a Microsoft Certified Application Developer for .NET and a Microsoft Certified Solution Developer. Jeff currently lives in Kirkland, Washington with his beautiful wife Jill. He can be reached at jwidmer@aspalliance.com or at his web site at http://www.jeffreywidmer.com.
37

In the See Also area, the first item should read
Section 14.9 "Handling Events"
Not:
Section 15.9 "Handling Events"

64

Under the comments for recipe 4.1, second paragraph, last sentence:
"The VaryByParam attribute controls the VaryBy option -- discussed in more detail in Section 4.4" This sentence should be deleted and replaced with the following:

The VaryByParam attribute specifies which parameters (in the Request.Params collection) should cause separate versions of the page to be stored in the cache.

65

Line 2, OuptuCache should be OutputCache.

108

Under comments for recipe 9.1, line 2, "to your customer error screen" should read "to your custom error screen".

111

In the Technique section for Recipe 9.4, line 6, the following line:
Connection.Open()
should read:
_Connection.Open()

128

In the Technique section for Recipe 10.9, line 6, the following line:
Dim cmdText = "INSERT INTO sql_images(Image) VALUES(@image)"
should read:
Dim cmdText As String = "INSERT INTO sql_images(Image) VALUES(@image)"

132

In the Technique section for Recipe 10.11, line 3, the following line:
DataGrid1.DataSource = Command.ExecuteReader(CommandBehavior.CloseConnection)
should read:
DataGrid1.DataSource = _Command.ExecuteReader(CommandBehavior.CloseConnection)

133

In the Technique section for Recipe 10.12, line 20, the following line:
DataGrid1.DataSource = Command.ExecuteReader(CommandBehavior.CloseConnection)
should read:
DataGrid1.DataSource = _Command.ExecuteReader(CommandBehavior.CloseConnection)

201

Recipe 13.15 is missing the BindMasterDataGrid() method referenced in the Technique section. The MasterDataGrid_SelectedIndexChanged() method is incomplete as well. The correct code can be found here:

http://aspalliance.com/cookbook/ViewSource.aspx?Filename=recipe1315vb.aspx&RecipeType=ASPX
243

The string encryption algorithm shown results in the last character of the string not being included in the encrypted ciphertext (and thus not showing up when the string is decrypted). This error only affects the VB code in the book - the C# code online was correct. All online code (both VB and C#) has been corrected.

Change the second-to-last line on page 243 from:
crStream.Write(input, 0, input.Length - 1)
to
crStream.Write(input, 0, input.Length)

384

Change the following line:
If ColorTranslator.ToHtml(pixel) = "#ffffff" Then
to
If pixel.A = 0 Then

385

Change the following lines respectively:
Dim outputBitmap As New Bitmap(200, 200, PixelFormat.Format24Rgb)
...
g.Clear(Color.White)
to
Dim outputBitmap As New Bitmap(200, 200, PixelFormat.Format32Argb)
...
g.Clear(Color.FromArgb(0, 255, 255, 255))


  "Bought the cookbook a few weeks ago; popped it on the side of my desk and bookmarked some pages. There it lay for 10 days... then I got a project with a short deadline. This book is my salvation - I just used about 10 of the techniques from there, and the client is happy with the prototype. Never will I doubt again; a little £30 investment saved me hours for a proof of concept and will no doubt save me more time as the development progresses. A big thumbs up for Steve et al from the UK."
David Miles
DNA Consulting Limited