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

Adding a Web Page

One of the fundamental concepts in ASP.NET is programmatically generated web pages, more commonly known as dynamic web pages, or simply dynamic pages. A dynamic page mixes program logic (in our case, C# code) with HTML to create content that will be displayed in a client browser. Such a page is dynamic because the code portions of the web page are evaluated for each browser request, allowing you to produce different content. This is in contrast to static content, such as a regular HTML files or an image file, where the same content is always sent to the users’ browsers.

ASP.NET supports two different, but related, models for combining program logic and HTML: using code blocks or using code-behind files. We’ll explore both of ...

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