
<result> | 435
web.config
Reference
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
<case match=string>
property1=value
property2=value
propertyN=value
</case>
<case match=string>
property1=value
property2=value
propertyN=value
</case>
</filter>
</browserCaps>
Controls the configuration of the browser capabilities component returned by the
Response.Browser property. The property/value pairs under the
<use> element
configure the default values of the browser capabilities component properties; the
property/value pairs in the
<filter> elements update these properties based on a
match between the string value specified for the
match attribute of the <case>
element and the value of the var attribute of the <use> element (which is typically
set to
HTTP_USER_AGENT).
Scope
Any
Attributes
None
Child Elements
<result>, <use>, <filter>
Example
The machine.config configuration file contains the default settings for the
<browserCaps> element. The default settings provide the best example for modi-
fying or updating this element.
Notes
The primary purpose of this configuration element and its children is to allow the
addition of new browser types and to update the capabilities of these browsers.
Thus, when a page calls the browser capabilities component, it will receive accu-
rate information about the capabilities of the browser used for the current request. ...