Summary

Rendering dynamic HTML content is right at the heart of ASP.NET, and in this chapter, we have explored how this is implemented. You will see the combination of web page files and code-behind files used throughout ASP.NET. Now that you have seen how ASP.NET achieves this, you’ll find that peeking behind the curtain of higher-level features such as web forms and the Model-View-Controller (MVC ) pattern to be easier and more informative.

When we used the Page_Load method in our code-behind files, we touched on the ASP.NET event system, which we will look at in more depth in Chapter 5. ASP.NET implements events that are invoked at key stages in the web application life cycle. We used one of them to hook our C# code into our HTML output. There ...

Get Applied ASP.NET 4 in Context now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.