| Contents at a Glance | 5 |
|---|
| Contents | 7 |
|---|
| About the Author | 24 |
|---|
| About the Technical Reviewer | 25 |
|---|
| Acknowledgments | 26 |
|---|
| Introduction | 27 |
|---|
| About This Book | 27 |
| Code Samples | 29 |
| Chapter Overview | 30 |
| Feedback | 31 |
| Introducing .NET | 32 |
|---|
| The .NET Framework | 33 |
| The Evolution of Web Development | 33 |
| The . NET Framework | 39 |
| The Last Word | 47 |
| The C# Language | 48 |
| The . NET Languages | 48 |
| C# Language Basics | 49 |
| Variables and Data Types | 51 |
| Variable Operations | 59 |
| Object- Based Manipulation | 63 |
| Conditional Logic | 69 |
| Loops | 71 |
| Methods | 75 |
| The Last Word | 80 |
| Types, Objects, and Namespaces | 81 |
| The Basics About Classes | 81 |
| Building a Basic Class | 84 |
| Value Types and Reference Types | 94 |
| Understanding Namespaces and Assemblies | 99 |
| Advanced Class Programming | 103 |
| The Last Word | 110 |
| Developing ASP.NET Applications | 112 |
|---|
| Visual Studio | 113 |
| The Promise of Visual Studio | 113 |
| Creating Websites | 114 |
| Designing a Web Page | 123 |
| The Anatomy of a Web Form | 128 |
| Writing Code | 138 |
| Visual Studio Debugging | 146 |
| The Last Word | 153 |
| Web Form Fundamentals | 154 |
| The Anatomy of an ASP. NET Application | 154 |
| Introducing Server Controls | 157 |
| Improving the Currency Converter | 172 |
| A Deeper Look at HTML Control Classes | 178 |
| The Page Class | 183 |
| Application Events | 186 |
| ASP. NET Configuration | 188 |
| The Last Word | 195 |
| Web Controls | 196 |
| Stepping Up to Web Controls | 196 |
| Web Control Classes | 199 |
| List Controls | 207 |
| Table Controls | 211 |
| Web Control Events and AutoPostBack | 216 |
| A Simple Web Page | 224 |
| The Last Word | 234 |
| State Management | 235 |
| The Problem of State | 235 |
| View State | 236 |
| Transferring Information Between Pages | 242 |
| Cookies | 252 |
| Session State | 255 |
| Session State Configuration | 260 |
| Application State | 269 |
| An Overview of State Management Choices | 271 |
| The Last Word | 272 |
| Error Handling, Logging, and Tracing | 273 |
| Common Errors | 273 |
| Exception Handling | 275 |
| Handling Exceptions | 278 |
| Throwing Your Own Exceptions | 284 |
| Logging Exceptions | 288 |
| Error Pages | 299 |
| Page Tracing | 304 |
| The Last Word | 317 |
| Deploying ASP.NET Applications | 318 |
| ASP. NET Applications and the Web Server | 318 |
| Internet Information Services ( IIS) | 323 |
| Managing Websites with IIS Manager | 331 |
| Deploying a Simple Site | 339 |
| Deploying with Visual Studio | 346 |
| The Last Word | 353 |
| Building Better Web Forms | 354 |
|---|
| Validation | 355 |
| Understanding Validation | 355 |
| The Validation Controls | 358 |
| The Last Word | 376 |
| Rich Controls | 377 |
| The Calendar | 377 |
| The AdRotator | 385 |
| Pages with Multiple Views | 388 |
| The Last Word | 401 |
| User Controls and Graphics | 403 |
| User Controls | 403 |
| Dynamic Graphics | 416 |
| The Last Word | 425 |
| Styles, Themes, and Master Pages | 426 |
| Styles | 426 |
| Themes | 440 |
| Master Page Basics | 448 |
| Advanced Master Pages | 459 |
| The Last Word | 465 |
| Website Navigation | 466 |
| Site Maps | 466 |
| The SiteMapPath Control | 483 |
| The TreeView Control | 488 |
| The Menu Control | 495 |
| The Last Word | 501 |
| Working with Data | 502 |
|---|
| ADO.NET Fundamentals | 503 |
| Understanding Data Management | 503 |
| Configuring Your Database | 506 |
| SQL Basics | 510 |
| ADO. NET Basics | 518 |
| Direct Data Acc
|