it is convenient, for the sake of discussing application types, to
divide ASP.NET applications into web applications and web services,
the truth is that from a practical standpoint, ASP.NET applications
can be comprised of both types; an ASP.NET Web Application may
.asmx files that implement web services,
and a web service application may contain
files that implement user interfaces for web services or
functionality contained in .NET assemblies. Thus, from the standpoint
of application structure, ASP.NET Web Applications and ASP.NET Web
Services are quite similar.
The structure of an ASP.NET application consists of a site or virtual directory in IIS and at least one ASP.NET page or web service. Optionally, each ASP.NET application may have:
global.asax file, located in the root
of the application.
One or more
web.config files. There can be only
web.config file per directory or
subdirectory in the application.
One or more User Control files bearing the
One or more class files, either for ASP.NET code-behinds or for assemblies used in your application.
/bin directory containing .NET assemblies you
wish to use in your application. Assemblies in the
/bin directory are automatically made available
to your application.
ASP.NET Web Applications created in Visual Studio .NET should contain
Solution and Project-related files (
.csproj, for example), a dynamic ...