Chapter 2. ASP.NET Code Models

IN THIS CHAPTER

Understanding ASP.NET Web Form Code

Server-Side Code Models

Switching Server-Side Code Models

Choosing a Code Model

Understanding ASP.NET Web Form Code

Most ASP.NET web pages are made up of two parts: the ASPX page (called a Web form) and server-side code that executes on the web server and adds functionality to the Web form. The code in a Web form is an HTML page with some additional code added that ASP.NET uses to give functionality to the page. That additional code consists of one or more lines of code that tell ASP.NET how to execute the page (called directives) and ASP.NET design-time code that defines areas of the page that ASP.NET will replace with HTML when the page is browsed.

Note

Even ...

Get The Microsoft Expression Web Developer's Guide to ASP.NET 3.5: Learn to create ASP.NET applications using Visual Web Developer 2008 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.