
28
|
Chapter 2: ASP.NET Applications
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
We’ll discuss the uses of the global.asax file in more detail in Chapters 13 and 19.
.aspx Files
.aspx files, also known as ASP.NET pages or Web Forms, are the meat and pota-
toes of an ASP.NET Web Application. These files contain the HTML tags, server
controls, and code that present a user interface to your users, and process their
requests (or call helper functions in business-tier components to do so). Like the
global.asax file, .aspx files may either contain code directly or refer to a code-
behind class that contains the code for that page. Note that the code-behind used,
if any, must inherit from the
Page class in the System.Web.UI namespace. We’ll
discuss .aspx files in detail in Chapter 3.
.asmx Files
.asmx files are the files used to implement ASP.NET Web Services. These files
contain the methods, marked with the
WebMethod attribute, that will be exposed by
your application as web services. Like global.asax and .aspx files, .asmx files may
either contain code directly or refer to a code-behind class that implements the
methods to be exposed as web services. Note that the code-behind used, if any,
must inherit from the
WebService class in the System.Web.Services namespace
We’ll discuss .asmx files in detail in Chapter 4.
.ascx Files
.ascx files are ...