Web.config
Web.config is the main settings and configuration file for an ASP.NET web application. The file is a XML document that defines configuration information regarding the web application.This file stores the information about how the web application will act. The web.config file contains information that controls module loading, security configuration, session state configuration, and application language and compilation settings. Web.config files can also contain application specific items such as database connection strings.
<?xml version="1.0"?> <!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off" /> </system.web> </configuration>
<!--Web.Config Configuration File--> <configuration> <system.web> <customErrors mode="remoteonly" defaultRedirect = "mycustompage.htm" /> </system.web> </configuration>
External links
- ASP.NET Resources