Skip to main content


ASP.NET 3.5 For Dummies

Ken Cox

ISBN: 978-1-118-05217-4 February 2011 436 Pages


Did you volunteer to create a Web site for the softball team? Is it time to take your small business to the next level and let your customers shop online? Well, you can relax! ASP.NET 3.5 makes creating a dynamic site faster and cleaner than ever before, and ASP.NET 3.5 For Dummies makes it easier.

First, you’ll get an introduction to all the tools and terminology you need to understand ASP.NET. If you’ve used earlier versions of ASP.NET and Visual Web Developer, you can probably skip that part and jump right into what’s new in 3.5. You'll make friends with LINQ and SQL, create sites in Visual Web Developer 2008 Express, and much more. Before you know it, you’ll discover how to:

  • Integrate data, track shopping cart contents, and whisk away bugs
  • Create user interfaces with easy navigation
  • Use the ListView control for sophisticated formatting
  • Write LINQ queries
  • Add a table to a database
  • Create an event handler
  • Take advantage of the drag 'n' drop feature that lets you write less code
  • Put all the features to work to develop dynamic Web applications

The softball team is going to love that Web site, and your customers might enjoy shopping on your site so much that you’ll have to expand your business to fill all the orders! We can’t promise that, of course, but we’re pretty sure that ASP.NET 3.5 For Dummies will make creating Web sites easier and a lot more fun.

Introduction 1

Part I: Getting to Know ASP.NET and

Visual Web Developer 7

Chapter 1: Understanding Microsoft’s Web Technologies 9

Chapter 2: Getting Up and Running  21

Chapter 3: Creating a Useful ASP.NET Site 37

Chapter 4: Managing Data and Other CRUD 47

Chapter 5: Handling User Input and Events 61

Part II: Immersing Yourself in Data 75

Chapter 6: Fetching and Presenting Data with SqlDataSource 77

Chapter 7: LINQ as a Data Language 99

Chapter 8: Using LINQ to SQL and the LinqDataSource 121

Chapter 9: Creating and Consuming Diverse Data 143

Part III: Enhancing the Interface and

User Experience 163

Chapter 10: Common Elements: Style Sheets, Master Pages, and Skins 165

Chapter 11: Adding Navigation with TreeView, Menu,

Breadcrumb, and SiteMap .179

Chapter 12: Web Standards, Page Layout, and Usability  193

Chapter 13: Designing the ListView and Other Templated Controls .207

Chapter 14: Dynamic Effects, Images, and Rollovers 223

Chapter 15: Enhancing Pages with the AJAX Control Toolkit 239

Chapter 16: Creating and Displaying Rich Content 255

Part IV: Tracking Users, Controlling Access,

and Implementing Security 271

Chapter 17: Site Security Using Authentication and Membership 273

Chapter 18: Creating a Shopping Cart with Profiles 291

Chapter 19: Validation in Depth 315


Part V: Getting the Bugs Out and

Handling Runtime Errors   331

Chapter 20: Debugging and Tracing Pages 333

Chapter 21: Avoiding Crashes by Handling Exceptions 349

Chapter 22: Ten Tips on Deploying Your Web Application 365

Chapter 23: Ten Tips to Success with ASP.NET 379

Index 385

Source Code

Each downloadable archive (.zip) file contains the code, assemblies, style sheets, images, and database (including Northwnd.mdf and JulieDVD.mdf) used in the corresponding chapter. Be sure to retain the folder names when you extract the files to your local drive.

After extracting the files, open the file-based Web site in Visual Web Developer 2008 (Express) by choosing File-->Open Web Site-->File System-->(select the file folder such as c:\CH07\) -->Open. You can usually run the pages from within VWD by pressing Ctrl+F5.

If you find the archive files too large, or prefer to view the code by page number, visit the author's support site at

Obtaining Support, Updates, and Errata
The author, Ken Cox, provides support for the book's content to registered users at

If you have questions about ASP.NET 3.5 programming in general (or need help with your homework!), please visit Microsoft's forums at

Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 15
Chapter 16
Chapter 17
Chapter 18
Chapter 19
Chapter 20
Chapter 21
Chapter 22