Consolidated ASP Classic MVC framework from best components
25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
-
- <appSettings>
- <!--
- Access connection string.
- IMPORTANT: Change Data Source to the real physical path
- to your webdata.accdb file.
- -->
- <add key="ConnectionString"
- value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\YourApp\db\webdata.accdb;Persist Security Info=False;" />
-
- <!-- Environment flag (Development / Staging / Production) -->
- <add key="Environment" value="Development" />
-
- <!-- Flash message display duration in milliseconds -->
- <add key="FlashMessageTimeout" value="3000" />
-
- <!-- 404 error page redirect countdown in seconds -->
- <add key="Error404RedirectSeconds" value="5" />
-
- <!-- Cache expiration year for static content -->
- <add key="CacheExpirationYear" value="2030" />
-
- <!-- Maximum characters to display in table cells before truncating -->
- <add key="TableCellMaxLength" value="90" />
-
- <!-- Character threshold for textarea vs input field in forms -->
- <add key="FormTextareaThreshold" value="100" />
-
- <!-- Enable error logging to file (true/false) -->
- <add key="EnableErrorLogging" value="false" />
-
- <!-- Error log file path (if EnableErrorLogging is true) -->
- <add key="ErrorLogPath" value="C:\YourApp\logs\errors.log" />
-
- <!-- Enable cache-busting for URLs and assets (true/false) -->
- <add key="EnableCacheBusting" value="false" />
-
- <!-- Cache-bust parameter name (default: "v") -->
- <add key="CacheBustParamName" value="v" />
- </appSettings>
-
- <system.webServer>
- <!-- Default document for the site root -->
- <defaultDocument>
- <files>
- <clear />
- <add value="Default.asp" />
- </files>
- </defaultDocument>
-
- <!-- URL Rewrite: send everything through Default.asp except static assets -->
- <rewrite>
- <rules>
- <rule name="Rewrite to Default.asp" stopProcessing="true">
- <match url="^(?!Default\.asp$|css/|js/|images/|aspunit/|favicon\.ico$).*$" />
-
- <conditions>
- <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
- <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
- </conditions>
-
- <action type="Rewrite" url="/Default.asp" />
- </rule>
- </rules>
- </rewrite>
- </system.webServer>
-
- </configuration>
|