|
|
|
This sample web.config file shows you
- How to enable/disable debug in you web application globally. - How to add namespaces globally - How to add assembly globally - How to set number of recompile of ASPX pages before application restart - How to set compiler options - Customize error page or redirect error page
For more information visit folloing link
http://authors.aspalliance.com/aspxtreme/aspnet/syntax/aspnetconfigurationsections.aspx |
Click here to copy the following block | <configuration> <system.web> <compilation defaultLanguage="VB" debug="true" numRecompilesBeforeAppRestart="15">
<compilers> <compiler language="VB;VBScript" extension=".cls" type="Microsoft.VisualBasic.VBCodeProvider,system, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> < compiler language="C#;Csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,system, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> </compilers>
<assemblies> <add assembly="ADODB" /> <add assembly="*" /> </assemblies>
<namespaces> <add namespace="System.Web" /> <add namespace="System.Web.UI" /> <add namespace="System.Web.UI.WebControls" /> <add namespace="System.Web.UI.HtmlControls" /> </namespaces>
</compilation>
<customErrors mode="On" defaultRedirect="mygeneralerror.aspx"> <error statusCode="404" redirect="404.html" /> <error statusCode="403" redirect="403.html" /> </customErrors>
</system.web> </configuration> |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|