0
kicks
Expressions vs. Statements, part 2: ASP.NET Code Block Types
Building on our knowledge of expressions vs. statements in C# we will investigate the different ways we can write code in ASP.NET pages using code blocks. As we will see, some of these code constructs are based on exactly the difference between these two. Looking at the implementation details of ASP.NET pages (after parsing) reveals just why we so often get the CS1026 compiler error, especially when coding ASP.NET MVC views.