Skip to main content

Professional ASP.NET 3.5: In C# and VB

Professional ASP.NET 3.5: In C# and VB

Bill Evjen, Scott Hanselman, Devin Rader

ISBN: 978-1-118-05931-9

Jan 2011

1704 pages


Product not available for purchase


In this book, you’ll be introduced to the features and capabilities of ASP.NET 3.5, as well as the foundation that ASP.NET provides. Updated for the latest release of Visual Studio, this new edition adds five hundred pages of great new content compared to the original 2.0 version of the book. Including both printed and downloadable VB and C# code examples, this edition focuses even more on experienced programmers and advanced web development. New coverage includes new chapters on IIS 7 development, LINQ, ASP.NET, Silverlight, and many others.

Chapter 1: Application and Page Frameworks.

Chapter 2: ASP.NET Server Controls and Client-Side Scripts.

Chapter 3: ASP.NET Web Server Controls.

Chapter 4: Validation Server Controls.

Chapter 5: Working with Master Pages.

Chapter 6: Themes and Skins.

Chapter 7: Data Binding in ASP.NET 3.5.

Chapter 8: Data Management with ADO.NET.

Chapter 9: Querying with LINQ.

Chapter 10: Working with XML and LINQ to XML.

Chapter 11: IIS7.

Chapter 12: Introduction to the Provider Model.

Chapter 13: Extending the Provider Model.

Chapter 14: Site Navigation.

Chapter 15: Personalization.

Chapter 16: Membership and Role Management.

Chapter 17: Portal Frameworks and Web Parts.

Chapter 18: HTML and CSS Design with ASP.NET.

Chapter 19: ASP.NET AJAX.

Chapter 20: ASP.NET AJAX Control Toolkit.

Chapter 21: Security.

Chapter 22: State Management.

Chapter 23: Caching.

Chapter 24: Debugging and Error Handling.

Chapter 25: File I/O and Streams.

Chapter 26: User and Server Controls.

Chapter 27: Modules and Handlers.

Chapter 28: Using Business Objects.

Chapter 29: Building and Consuming Services.

Chapter 30: Localization.

Chapter 31: Configuration.

Chapter 32: Instrumentation.

Chapter 33: Administration and Management.

Chapter 34: Packaging and Deploying ASP.NET Applications.

Appendix A: Migrating Older ASP.NET Projects.

Appendix B: ASP.NET Ultimate Tools.

Appendix C: Silverlight.

Appendix D: ASP.NET Online Resources.


All sample code from book
Bonus Chapter
Bonus chapter: "Mobile Development" chapter from Professional ASP.NET 2.0 Special Edition
Replacement Figure 1-11
Replacement Figure 1-12
Replacement Figure 2-8
Replacement Figure 2-12
Replacement Figure 9-12
Replacement Figure 13-1
Replacement Figure 18-10
In Chapter 18, figure 18-10, on page 879 first print, and 852 2nd print, the figure is incorrect.

The corrected figure can be downloaded here.
Replacement Figure 27-5
Figure 27-5, which is on page 1288 in the 1st print, and on page 1253 in the 2nd print is incorrect.

The correct figure can be downloaded here.
ChapterPageDetailsDatePrint Run
Error in Figure 1-11
Figure 1-11 is incorrect. Please download the corrected figure here:,descCd-DOWNLOAD.html

Error in Figure 1-12
Figure 1-12 is incorrect. Please download the corrected figure here:,descCd-DOWNLOAD.html

2Error in Online Materials: Figure 2-8
online errata, no print correction:

Figure 2-8 shows a quick shortcut and visual notification that were removed from the final version of VS2008.

Please download the corrected figure here:,descCd-DOWNLOAD.html

Error in Figure 2-12
Figure 2-12 is incorrect. Please download the corrected figure here:,descCd-DOWNLOAD.html

vAuthor Bio
page v, frontmatter, author bio, replace what's there for Scott Hanselman with:

Scott Hanselman works for Microsoft as a Senior Program Manager in the Developer Division, aiming to spread the good word about developing software, most often on the Microsoft stack. Before this he worked in eFinance for 6+ years and before that he was a Principal Consultant at a Microsoft Partner for nearly 7 years. He was also involved in a few things like the MVP and RD programs and will speak about computers (and other passions) whenever someone will listen to him. He blogs at and podcasts at and contributes to,, and

vAuthor Bio
Devin's bio on page v in the frontmatter is also an outdated pickup and needs to be replaced with:

Devin Rader is a Product Manager on the Infragistics Web Client team, responsible for leading the creation of Infragistics ASP.NET and Silverlight products. Devin is also an active proponent and member of the .NET developer community, being a co-founder of the St. Louis .NET User Group, an active member of the New Jersey .NET User Group, a former board member of the International .NET Association (INETA), and a regular speaker at user groups. He is also a contributing author on the Wrox title Silverlight 1.0 and a technical editor for several other Wrox publications and has written columns for ASP.NET Pro magazine, as well as .NET technology articles for MSDN Online. You can find more of Devin’s musings at

275 1st, 73 2ndError in Code
Code, 5th line from end:

<a href="Default.aspx"<Home</a>

Should be

<a href="Default.aspx"> Home </a>


116 1st, 14 2ndError in Text
The following statement should be added at the end of the SmartNavigation description:

Since ASP.NET 2.0, SmartNavigation has been deprecated, use the SetFocus() method and the MaintainScrollPositionOnPostback property instead.

83 1st, 80 2ndError in Text
Paragraph after heading "Manipulating Pages and Server Controls with JavaScript" next to last line:

For example, look at a simple Label server control

Should be

For example, look at a simple TextBox server control

84Error in Text
Reads: "More methods and properties than just these two are available through the Client Script object..."

The previous sentence refers to three methods.

288 2ndError in Listing 2-23
Chapter 2, Listing 2-23
(page 88 in 2nd printing, page 91 in 1st printing)

<head runat="server"<

Should be:
<head runat="server">

95 1st, 92 2ndError in Code
In the code snippet after the paragraph beginning "In addition...", first line of code:


Should be


8442 1st, 423 2ndError in Text
The following should be added to the end of the paragraph before listing 8-33:

For this to work, you are going to have to add MultipleActiveResultSets=True to your connection string.

8444 1st, 426 2ndError in Listing 8-33
On page 444 of the first printing on the 16th line of code under the C# heading, and on page 426 2nd printing on the 11th line of code:


Should be


chapter 8, page 451 listing 8-35, first line under VB heading should read:

<%@ Page Language="VB" %>

505Error in Test Question
The correct answer to Chapter 1 question 26 should be "B", NOT "D".

10508Error in Listing
In Listing 9-5 the Books.xml file...
should be corrected to refer to listing 10-5

513Error in Listing
page 513, 2nd para after "Including NameTable Optimization" heading, 3nd line:

to the NameTable that you know will be in the document. Listings 9-5 and 9-6 use string comparisons...
should be referring to 10-5 and 10-6

11579 1st, 559 2ndError in Text
On page 579-581 in the first print, and on page 559-560 in the second print, the text near the bottom of the page, continuing after the figure and code listing:

Welcome.html and Start.html

should be

Welcome.htm and Start.htm

in several places.

12596 1st, 576 2ndError in Listing 12-2
4th line of listing:

connectionString="Data Source=;Integrated Security=SSPI" />

should be

connectionString="Data Source=;Integrated Security=SSPI;

Initial Catalog=aspnetdb;" />

13Error in Figure 13-1
Figure 13-1 is incorrect. Download the replacement figure here:,descCd-DOWNLOAD.html

310Error in Code
Listing 7-27

In the GridView1_Sorting event

The code should say:

e.SortExpression = OldExpression & ", " & newExpression

Otherwise, it resort with the new column first. This is a mistake in both the VB and C# code.

14690 1st, 666 2ndError in Text
Paragraph beginning "Note that you had to..." 3rd line:

method, the Finance node

should be

method, the Markets node

720 1st, 693 2ndError in Text
Paragraph beginning "From this example, ..." 2nd line:

(shown in bold)

Should be



15750, 1st printTypo in Text
First heading:


Should be


211004 1st, 973 2ndError in Text
Paragraph after the heading "Integrated Windows Authentication", last sentence:

This system of authentication also requires the client to be using Microsoft?s Internet Explorer, which might not always be possible.

Should be:

This system of authentication also requires the client to be using Microsoft's Internet Explorer for straight through processing (if you don't want your end users to be challenged), which might not always be possible.

221046 1st, 1016 2ndError in Code
Bold code headings:

C# - Default.asp

Should be

C# Default.aspx

261210 1st, 1175 2ndError in Text
Listing 26-6

should be

Listing 26-10

261210 1st, 1176 2ndError in Text
2nd paragraph under Property/Event Attributes heading:

Listing 26-1

should be

Listing 26-10

271276 1st, 1242 2ndError in Figure
Figure 27-1, near the top left,


should be



27Error in Figure 27-6
Figure 27-6 is the wrong figure.

Figure 27-5 is the correct figure for 27-6.

291345 1st, 13112ndError in Code
Last code line before heading "SOAP":

<int xmlns="">7</int>

Should be:

<int xmlns="xmlns="">7</int>

341532 1st, 1494 2nd Error in Text
First text paragraph:

production server (Z:\)

should be

production server (Y:\)