Choosing between Code Behind and Pages with lnline Code
Web Forms come in two flavors: either as an .aspx file with a Code Behind file (a :file named after the Web Form w:lth an additional .vb or .cs extension) or as .aspx files that have their code embedded, often referred to as Web Forms with inline code. Although you won't see much code until Chapter 5, it's important to understand the difference between these types of Web Forms. At first, Web Forms with inline code seem a little easier to understand. Because the code needed to program your website is part of the very same Web Form, you can clearly see how the code relates to the file. However, as your page gets larger and you add more functionality to it, it's often easier if you have the code in a separate file. That way. It’s completely separate from the markup. Enabling you to focus on the task at hand.