
438
|
Chapter 20: web.config Reference
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
<case>
<case match=string>
property1=value
property2=value
propertyN=value
</case>
Specifies one of a group of exclusive matching cases for which property assign-
ments will be executed. Only the first matching
<case> element within a given
<filter> element will be executed. The rest will be ignored.
Scope
Any
Attributes
match
The pattern to match. Uses the .NET Framework regular expression syntax.
This attribute is optional. If omitted, all requests will be assumed to match,
and any property/value assignments contained within the
<filter> element
will be executed.
with
The regular expression or string to find. This attribute is optional. If omitted,
the server variable specified in the
<use> element will be searched.
Child Elements
None
Notes
This element is useful in situations when you only want a single match. For
example, the default
<browserCaps> configuration in machine.config uses the
<case> element to assign the platform, win16, and win32 attributes.
<clientTarget>
<clientTarget>
<add alias=
aliasName
userAgent=userAgentString />
<remove alias=aliasName />
<clear />
</clientTarget>
Assigns aliases for specified browser user agent strings to be used by ASP.NET
Server Controls in deciding what type of content to render.
Scope
Any
Attributes
None