Database Reference
In-Depth Information
Figure 16-4. Layout of an empty file system web site
This empty web application loads with only one component in it, and that is the web.config file,
explained next.
The web.config File
The web.config file is a very important file of a web project. This file helps the developer by providing a
central location where all the settings required for various actions such as database connections,
debugging mode, and so on, can be set, and these settings will be applied and accessible throughout the
project.
Note The web.config file is not automatically added to the ASP.NET web site project if you select File System
as the storage location.
Another feature of the web.config file is that it is simple to read and write to, just like a Notepad file,
because it comes in XML format.
The web.config file has a lot of predefined tags that help you organize the configuration settings for
your web application. The most important thing to remember is that all tags need to be embedded
inside the parent tags <Configuration> </Configuration> .
 
Search WWH ::




Custom Search