O'Reilly logo

Applied ASP.NET 4 in Context by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making a Page Dynamic with Code Blocks

The pages we created in the previous section are static, meaning that the content is fixed. It doesn’t matter how many times you request the URLs associated with those files, the content returned to the browser will always be the same. The ASP.NET server treats static content as opaque, meaning that it doesn’t look inside the files or process them, except to return their contents to the client browser.

The counterpart to a static web page is a dynamic web page, which mixes HTML content with program logic that the ASP.NET server executes to generate content. The HTML that results from a request to a dynamic page can vary based on the output of the program logic. In this section, we will convert our HTML file ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required