| Contents at a Glance | 6 |
|---|
| Contents | 8 |
|---|
| About the Author | 28 |
|---|
| About the Technical Reviewer | 30 |
|---|
| Acknowledgments | 32 |
|---|
| Introduction | 34 |
|---|
| PART 1 Introducing .NET | 39 |
|---|
| CHAPTER 1 Introducing the .NET Framework | 41 |
| The Evolution of Web Development | 41 |
| The .NET Framework | 48 |
| VB 2005, C#, and the .NET Languages | 50 |
| The Common Language Runtime | 52 |
| The .NET Class Library | 54 |
| Visual Studio 2005 | 55 |
| .NET 2.0 | 56 |
| The Last Word | 58 |
| CHAPTER 2 Learning the VB 2005 Language | 59 |
| The .NET Languages | 59 |
| The Evolution of Visual Basic | 60 |
| Variables and Data Types | 61 |
| Variable Operations | 68 |
| Object-Based Manipulation | 72 |
| Conditional Structures | 77 |
| Loop Structures | 79 |
| Methods | 83 |
| The Last Word | 88 |
| CHAPTER 3 Types, Objects, and Namespaces | 89 |
| The Basics of Classes | 89 |
| Building a Basic Class | 92 |
| Value Types and Reference Types | 105 |
| Understanding Namespaces and Assemblies | 109 |
| Advanced Class Programming | 113 |
| The Last Word | 122 |
| CHAPTER 4 Introducing Visual Studio 2005 | 123 |
| The Promise of Visual Studio | 123 |
| Creating a Website | 125 |
| Designing a Web Page | 130 |
| Writing Code | 138 |
| Visual Studio Debugging | 148 |
| The Last Word | 153 |
| PART 2 Developing ASP.NET Applications | 155 |
|---|
| CHAPTER 5 Web Form Fundamentals | 157 |
| The Anatomy of an ASP.NET Application | 157 |
| A Simple One-Page Web Application | 162 |
| Improving the Currency Converter | 177 |
| A Deeper Look at HTML Control Classes | 183 |
| The Page Class | 189 |
| ASP.NET Configuration | 195 |
| The Last Word | 204 |
| CHAPTER 6 Web Controls | 205 |
| Stepping Up to Web Controls | 205 |
| Web Control Classes | 209 |
| List Controls | 216 |
| Table Controls | 222 |
| Web Control Events and AutoPostBack | 227 |
| A Simple Web Page | 235 |
| The Last Word | 245 |
| CHAPTER 7 Tracing, Logging, and Error Handling | 247 |
| Common Errors | 247 |
| Exception Handling | 249 |
| Handling Exceptions | 252 |
| Throwing Your Own Exceptions | 258 |
| Logging Exceptions | 263 |
| Error Pages | 272 |
| Page Tracing | 277 |
| The Last Word | 291 |
| CHAPTER 8 Validation and Rich Controls | 293 |
| Validation | 293 |
| A Simple Validation Example | 297 |
| Understanding Regular Expressions | 304 |
| Rich Controls | 315 |
| Pages with Multiple Views | 327 |
| The Last Word | 340 |
| CHAPTER 9 State Management | 341 |
| The Problem of State | 341 |
| View State | 342 |
| Transferring Information | 349 |
| Custom Cookies | 358 |
| Session State | 361 |
| Session State Configuration | 367 |
| Application State | 375 |
| An Overview of State Management Choices | 377 |
| The Global.asax Application File | 378 |
| The Last Word | 380 |
| CHAPTER 10 Master Pages and Themes | 381 |
| Master Page Basics | 381 |
| Advanced Master Pages | 393 |
| Themes | 400 |
| The Last Word | 410 |
| CHAPTER 11 Website Navigation | 411 |
| Site Maps | 411 |
| The SiteMapPath Control | 431 |
| The TreeView Control | 435 |
| The Menu Control | 442 |
| The Last Word | 448 |
| CHAPTER 12 Deploying ASP.NET Applications | 449 |
| ASP.NET Applications and the Web Server | 449 |
| IIS (Internet Information Services) | 454 |
| Managing Websites with IIS Manager | 460 |
| Deploying a Simple Site | 474 |
| Deploying with Visual Studio 2005 | 480 |
| The Last Word | 488 |
| PART 3 Working with Data | 489 |
|---|
| CHAPTER 13 ADO.NET Fundamentals | 491 |
| ADO.NET and Data Management | 491 |
| SQL Basics | 498 |
| ADO.NET Basics | 507 |
| Direct Data Access | 511 |
| Creating a Connection | 512 |
| Defining a Select Command | 518 |
| Updating Data | 524 |
| Disconnected Data Access | 535 |
| Updating Disconnected Data | 545 |
| The Last Word | 554 |
| CHAPTER 14 Data Binding | 555 |
| Introducing Data Binding | 555 |
| Single-Value Data Binding | 557 |
| Repeated-Value Data Binding | 564 |
| Data Source Controls | 581 |
| The Last Word | 595 |
| CHAPTER 15 The Data Controls | 597 |
| The GridView | 597 |
| Formatting the GridView | 604 |
| Selecting a GridView Row | 611 |
| Editing with the GridView | 616 |
| Sorting and Paging the GridView | 619 |
| Using GridView Templates | 625 |
| The DetailsView and FormView | 635 |
| The Last Word | 640 |
| CHAPTER 16 Files and Streams | 641 |
| Files and Web Applications | 641 |
| File System Information | 642 |
| Reading and Writing with Streams | 655 |
| Allowing File Uploads | 665 |
| The Last Word | 669 |
| CHAPTER 17 XML | 671 |
| XML s Hidden Role in .NET | 671 |
| XML Explained<
|