| Title Page | 1 |
|---|
| Copyright Page | 2 |
|---|
| Contents at a Glance | 4 |
|---|
| Table of Contents | 6 |
|---|
| About the Authors | 31 |
|---|
| About the Technical Reviewer | 32 |
|---|
| Introduction | 33 |
|---|
| What Does This Book Cover? | 33 |
| Who Is This Book For? | 34 |
| What Do You Need to Use This Book? | 35 |
| Customer Support | 35 |
| Sample Code | 35 |
| Errata | 35 |
| PART I Core Concepts | 36 |
|---|
| CHAPTER 1 Introducing ASP.NET | 37 |
|---|
| The Seven Pillars of ASP.NET | 37 |
| #1: ASP.NET Is Integrated with the .NET Framework | 37 |
| #2: ASP.NET Is Compiled, Not Interpreted | 38 |
| #3: ASP.NET Is Multilanguage | 40 |
| #4: ASP.NET Is Hosted by the Common Language Runtime | 42 |
| #5: ASP.NET Is Object-Oriented | 43 |
| #6: ASP.NET Supports all Browsers | 45 |
| #7: ASP.NET Is Easy to Deploy and Configure | 45 |
| The Evolution of ASP.NET | 46 |
| ASP.NET 1.0 and 1.1 | 46 |
| ASP.NET 2.0 | 46 |
| ASP.NET 3.5 | 48 |
| LINQ | 48 |
| ASP.NET AJAX | 49 |
| ASP.NET 4 | 51 |
| ASP.NET MVC | 52 |
| ASP.NET Dynamic Data | 52 |
| Silverlight | 53 |
| Summary | 53 |
| CHAPTER 2 Visual Studio | 54 |
|---|
| Introducing Visual Studio | 54 |
| Websites and Web Projects | 55 |
| Creating a Projectless Website | 56 |
| The Development Language | 57 |
| The Framework Version | 57 |
| The Template | 58 |
| The Location | 59 |
| Designing a Web Page | 61 |
| Absolute Positioning | 62 |
| Smart Tags | 63 |
| Static HTML Tags | 64 |
| HTML Tables | 64 |
| Structuring HTML Markup | 65 |
| The Visual Studio IDE | 67 |
| Solution Explorer | 69 |
| Document Window | 70 |
| Toolbox | 70 |
| Error List and Task List | 71 |
| Server Explorer | 73 |
| The Code Editor | 74 |
| Adding Assembly References | 75 |
| IntelliSense and Outlining | 78 |
| Outlining | 78 |
| Member List | 79 |
| Error Underlining | 81 |
| Visual Studio 2010 Improvements | 81 |
| IntelliSense Gets More Intelligent | 82 |
| New Tools for Search and Navigation | 83 |
| Draggable Document Windows | 85 |
| The Code Model | 85 |
| How Code-Behind Files Are Connected to Pages | 88 |
| How Control Tags Are Connected to Page Variables | 89 |
| How Events Are Connected to Event Handlers | 90 |
| Web Projects | 91 |
| Project-Based Development | 92 |
| Creating a Web Project | 93 |
| Migrating a Website from a Previous Version of Visual Studio | 94 |
| Visual Studio Debugging | 96 |
| Single-Step Debugging | 97 |
| Variable Watches | 100 |
| Advanced Breakpoints | 101 |
| The Web Development Helper | 101 |
| Summary | 103 |
| CHAPTER 3 Web Forms | 104 |
|---|
| Page Processing | 105 |
| HTML Forms | 105 |
| Dynamic User Interface | 107 |
| The ASP.NET Event Model | 108 |
| Automatic Postbacks | 109 |
| Automatic Postbacks Under the Hood | 109 |
| View State | 110 |
| View State Under the Hood | 113 |
| View State Chunking | 114 |
| XHTML Compliance | 115 |
| Document Type Definitions | 116 |
| Configuring XHTML Rendering | 117 |
| Visual Studio s Default Doctype | 119 |
| XHTML Validation | 119 |
| Client-Side Control IDs | 121 |
| Web Forms Processing Stages | 123 |
| Page Framework Initialization | 124 |
| User Code Initialization | 125 |
| Validation | 125 |
| Event Handling | 126 |
| Automatic Data Binding | 126 |
| Cleanup | 127 |
| A Page Flow Example | 127 |
| The Page As a Control Container | 130 |
| Showing the Control Tree | 130 |
| The Page Header | 134 |
| Dynamic Control Creation | 136 |
| The Page Class | 138 |
| Session, Application, and Cache | 139 |
| Request | 139 |
| Response | 141 |
| Moving Between Pages | 143 |
| HTML and URL Encoding | 145 |
| User | 147 |
| Trace | 147 |
| Application Tracing | 151 |
| Tracing with the Web Development Helper | 153 |
| Accessing the HTTP Context in Another Class | 153 |
| Summary | 154 |
|
|
|---|