
<compilation> | 439
web.config
Reference
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Child Elements
<add>
Adds an alias with the name specified by the
alias attribute for the User
Agent string specified by the
userAgent attribute.
<remove>
Removes a previously configured alias with the name specified by the
alias
attribute.
<clear>
Clears all previously configured aliases.
Example
This example comes from the default <clientTarget> element:
<clientTarget>
<add alias="ie5"
userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" />
<add alias="ie4"
userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="uplevel"
userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="downlevel"
userAgent="Unknown" />
</clientTarget>
Notes
This element is used primarily by the built-in ASP.NET Server Controls. Thus,
you should avoid making changes to the existing aliases to avoid preventing these
controls from rendering uplevel content.
<compilation>
<compilation
batch=boolean
batchTimeout=numSeconds
debug=boolean
defaultLanguage=languageAlias
explicit=boolean
maxBatchSize=maxPages
maxBatchGeneratedFileSize=maxSize
numRecompilesBeforeAppRestart=numRecompiles
strict=boolean
tempDirectory=dirName >
<compilers>
<compiler language=languageAlias
extension=fileExt
type=typeName
warningLevel=number
compilerOptions= ...