| |||||||||||||||||
<configuration> SectionASP.NET Syntax ASP.NET Configuration Sections The required root element in every configuration file that is used by the common language runtime and the .NET Framework applications. <configuration xmlns = "schema URL"> <!-- configuration settings --> </configuration> Attributes and ElementsThe following sections describe attributes, child elements, and parent elements. Attributes
Child Elements
Parent ElementsNone. RemarksThe configuration element is the required root element in every configuration file that is used by the common language runtime and the .NET Framework applications. Each configuration file must contain exactly one configuration element. Default ConfigurationThe following code example shows a basic Web.config file that can be created for any ASP.NET application. The customErrors section is provided in case it is required but is commented out. <?xml version = "1.0"?>
<configuration xmlns = "http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings />
<connectionStrings />
<system.web>
<compilation debug = "false" />
<authentication mode = "Windows" />
<!--
<customErrors mode = "RemoteOnly" defaultRedirect = "GenericErrorPage.htm">
<error statusCode = "403" redirect = "NoAccess.htm" />
<error statusCode = "404" redirect = "FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
See Also |
| ||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme