Web Forms
Overview
ASP.NET Web Forms pages are created in a manner similar
to static HTML Web pages (pages that do not include server-based processing), however ASP.NET Web Forms include extra server-side code that ASP.NET,
running on a Web server, recognizes and processes when the page
is requested by the client. The characteristics that distinguish ASP.NET Web Forms pages from static HTML (or other) pages are as follows:
-
A file name extension of .aspx instead of .htm, .html, or other file name extensions. The .aspx file name extension causes the page to be processed by ASP.NET
on the Web server, before the Web server responds to the
client's request.
-
An optional @ Page directive or other directive, as appropriate to the type of page that you are creating.
-
A form element that is configured correctly for ASP.NET. The form element is required only if the page contains controls whose values you want to use during page processing on the server side.
-
Web server controls.
-
Server-side code either embedded into the ASP.NET Web Form or its linked code-behind class file.
Creating a New Web Forms Project
Related Links