| Contents at a Glance | 5 |
|---|
| Contents | 8 |
|---|
| About the Author | 27 |
|---|
| About the Technical Reviewer | 28 |
|---|
| Acknowledgments | 29 |
|---|
| Introduction | 30 |
|---|
| PART 1 Introducing .NET | 35 |
|---|
| CHAPTER 1 Introducing the .NET Framework | 37 |
| The Evolution of Web Development | 37 |
| The .NET Framework | 44 |
| C#, VB .NET, and the .NET Languages | 46 |
| The Common Language Runtime | 48 |
| The .NET Class Library | 50 |
| Visual Studio | 51 |
| .NET 2.0 | 52 |
| The Last Word | 55 |
| CHAPTER 2 Learning the C# Language | 57 |
| The .NET Languages | 57 |
| C# Language Basics | 58 |
| Variables and Data Types | 61 |
| Variable Operations | 69 |
| Object-Based Manipulation | 73 |
| Conditional Structures | 78 |
| Loop Structures | 81 |
| Methods | 85 |
| The Last Word | 91 |
| CHAPTER 3 Types, Objects, and Namespaces | 93 |
| The Basics About Classes | 93 |
| Building a Basic Class | 96 |
| Value Types and Reference Types | 107 |
| Understanding Namespaces and Assemblies | 112 |
| Advanced Class Programming | 116 |
| The Last Word | 124 |
| CHAPTER 4 Introducing Visual Studio 2005 | 125 |
| The Promise of Visual Studio | 125 |
| Creating a Website | 127 |
| Designing a Web Page | 132 |
| Writing Code | 139 |
| Visual Studio Debugging | 149 |
| The Last Word | 155 |
| PART 2 Developing ASP.NET Applications | 157 |
|---|
| CHAPTER 5 Web Form Fundamentals | 159 |
| The Anatomy of an ASP.NET Application | 159 |
| A Simple One-Page Applet | 164 |
| Improving the Currency Converter | 180 |
| A Deeper Look at HTML Control Classes | 186 |
| The Page Class | 192 |
| ASP.NET Configuration | 199 |
| The Last Word | 208 |
| CHAPTER 6 Web Controls | 209 |
| Stepping Up to Web Controls | 209 |
| Web Control Classes | 213 |
| List Controls | 220 |
| Table Controls | 225 |
| AutoPostBack and Web Control Events | 231 |
| A Simple Web Page Applet | 240 |
| The Last Word | 251 |
| CHAPTER 7 Tracing, Logging, and Error Handling | 253 |
| Common Errors | 253 |
| Exception Handling | 255 |
| Handling Exceptions | 259 |
| Throwing Your Own Exceptions | 266 |
| Logging Exceptions | 270 |
| Error Pages | 280 |
| Page Tracing | 286 |
| The Last Word | 300 |
| CHAPTER 8 Validation and Rich Controls | 301 |
| Validation | 301 |
| A Simple Validation Example | 305 |
| Understanding Regular Expressions | 312 |
| Rich Controls | 324 |
| Pages with Multiple Views | 336 |
| The Last Word | 350 |
| CHAPTER 9 State Management | 351 |
| The Problem of State | 351 |
| View State | 352 |
| Transferring Information | 359 |
| Custom Cookies | 368 |
| Session State | 371 |
| Session State Configuration | 378 |
| Application State | 386 |
| An Overview of State Management Choices | 388 |
| The Global.asax Application File | 390 |
| The Last Word | 392 |
| CHAPTER 10 Master Pages and Themes | 393 |
| Master Page Basics | 393 |
| Advanced Master Pages | 405 |
| Themes | 411 |
| The Last Word | 421 |
| CHAPTER 11 Website Navigation | 423 |
| Site Maps | 423 |
| The SiteMapPath Control | 443 |
| The TreeView Control | 447 |
| The Menu Control | 454 |
| The Last Word | 459 |
| CHAPTER 12 Deploying ASP.NET Applications | 461 |
| ASP.NET Applications and the Web Server | 461 |
| IIS (Internet Information Services) | 467 |
| Managing Websites with IIS Manager | 473 |
| Deploying a Simple Site | 487 |
| Deploying with Visual Studio 2005 | 494 |
| The Last Word | 502 |
| PART 3 Working with Data | 503 |
|---|
| CHAPTER 13 ADO.NET Fundamentals | 505 |
| ADO.NET and Data Management | 505 |
| SQL Basics | 512 |
| ADO.NET Basics | 521 |
| Direct Data Access | 526 |
| Creating a Connection | 527 |
| Defining a Select Command | 534 |
| Updating Data | 541 |
| Disconnected Data Access | 552 |
| Updating Disconnected Data | 562 |
| The Last Word | 572 |
| CHAPTER 14 Data Binding | 573 |
| Introducing Data Binding | 573 |
| Single-Value Data Binding | 575 |
| Repeated-Value Data Binding | 581 |
| Data Source Controls | 598 |
| The Last Word | 612 |
| CHAPTER 15 The Data Controls | 615 |
| The GridView | 615 |
| Formatting the GridView | 622 |
| Selecting a GridView Row | 629 |
| Editing with the GridView | 634 |
| Sorting and Paging the GridView | 637 |
| Using GridView Templates | 642 |
| The DetailsView and FormView | 652 |
| The Last Word | 657 |
| CHAPTER 16 Files and Streams | 659 |
| Files and Web Applications | 659 |
| File System Information | 660 |
| Reading and Writing with Streams | 674 |
| Allowing File Uploads | 684 |
| The Last Word | 688 |
| CHAPTER 17 XML | 689 |
| XML s Hidden Role in .NET | 689 |
| XML Explained | 690 |
| The XML Classes | 697 |
| XML Validation | 715 |
| XML Display and Transforms | 721 |
| XML Data Binding | 726 |
| XML in ADO.NET | 732 |
| The Last Word | 736 |
|
|