ASP.NET Web Forms

Introduction

This is a sample chapter from Pure ASP.NET.

At the most basic level, an ASP.NET Web form looks remarkably like a regular HTML page. It is a text file that contains markup language that can be edited in a simple text editor such as notepad. However, an ASP.NET Web form has several "distinguishing elements, which are discussed in this chapter:

  • Web forms contain blocks of code that are processed on the server.

  • The first time a Web form is requested, the entire page is compiled. Subsequent requests are served from this compiled page.

  • Web forms can contain page directives, which are global settings for the page. Common page directives enable you to turn off session state and ViewState management.

  • Web forms can contain both server-sides, including SSIs, which enable you to dynamically insert the contents of a file into your Web form, and user controls. User controls are object oriented and use a more programmatic approach to code encapsulation than SSIs.

  • As mentioned previously, Web forms can also contain as much HTML and client-side script, such as JavaScript, as desired.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Java is to JavaScript what Car is to Carpet.” - Chris Heilmann