Anatomy of an ASP.NET
Anatomy of an ASP.NET Application
M.SARULATHA
Assistant Professor, Dept. of CA,JJC
ASP.NET
applications are often categorized by multiple Web pages. Every Web page in the
ASP.NET application participates in a standard set of resources and
configuration settings.
Each
ASP.NET request is made within a separate application domain. These application
domains ensure that even if a Web application causes a fatal error, it does not
affect other applications running on the same computer.
Each
Web application is a separate organization with its own data set. It can be
defined as a combination of files, pages, administrators, modules, and
effective code that can be linked to the cache visible on a Web server.
Resources ASP.NET Web Applications:
Bin: Keeps all
integrated .NET elements (DLLs) used by the ASP.NET web application.
App_Code:
Store-source code files are dynamically integrated for use in the Web app.
App_Browsers:
Stores browser description files.
App_GlobalResource:
Store worldwide resources that are accessible to all pages in the Web app.
App_LocalResource:
Store .resx files are available only on a specific page.
App_WebReferences: Stores
References to Web applications used by the Web application.
App_Data:
Store information such as data files and XML files used by the app.
App_Themes: Keeps
the themes used in the Web application.
Files used in ASP.NET Web applications:
End with .aspx:
These are the ASP.NET Web pages that contain the interface, again, the basic
code.
End with .ascx:
These are ASP.NET user controls.
End with .asmx:
These are the ASP.NET Web settings.
web.config:
This is an XML based editing file for ASP.NE applications.
Global.asax:
This is a global application file.
End with .cs:
These are the code files in the background that contain the code C #.
End with .ashx:
These are the default HTTP administrators for all Web administrators who do not
have a user interface.
Configuration files used in ASP.NET web
applications:
Configuration
file is an XML file that contains app configuration settings and has a .config
extension.
It offers the following benefits:
1. Provides control and flexibility in the way you
process applications.
2. Eliminate the need to repeat the application each
time a change is made.
3. Controls access to protected resources and
location of remote applications and objects by defining configuration settings.
Server Settings - Machine.config - Introduce
to the root of the configuration domain.
Web Root Settings - Web.config - Launch
in the same directory as machine.config.
Website settings (optional) - Web.config
-
Present to the root directory of each IIS website.
System root settings (optional) -
Web.config - Present to root system for each
program.
Subfolder application (optional) - Web.config
- Launch
in the application root root folder.
Comments
Post a Comment