C H A P T E R  4

Working with Pages

The main objective of most ASP.NET web applications is to generate HTML content that will be displayed in a web browser (although you can use ASP.NET to produce other kinds of data, as you’ll learn in later chapters).

In this chapter, we are going to look at the core mechanism that ASP.NET provides for generating HTML: the ASP.NET web page. Getting a good grip on this topic is a big step toward understanding ASP.NET as a whole, and you will be surprised at how simply and elegantly this all works.

We are going to start with a simple HTML file and explore different ways of combining C# and HTML to generate the same result in the browser. Using dynamic content features to reproduce static HTML may seem odd, but ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.