PRB: Setting the HTTP Header in the <browserCaps> Section Does Not Work in ASP.NET 1.1 (828978)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework 1.1)
SYMPTOMSIn Microsoft ASP.NET 1.1, when you set the HTTP header value in the <browserCaps> section of a Web.config file, the set value does not work as
expected.WORKAROUNDTo work around this problem, set the value of the isMobileDevice property to true in the <browserCaps> section of the Web.config file as follows: <configuration>
<system.web>
<browserCaps>
isMobileDevice="true"
<use var="HTTP_ACCEPT_LANGUAGE" as="accept_language" />
<filter>
<case match="en-us" with="%{accept_language}">
browser = "Testing browser type"
</case>
</filter>
</browserCaps>
</system.web> STATUS This
behavior is by design.REFERENCESFor more information, visit the following Microsoft Developer Network (MSDN) Web
sites: For additional
information, click the following article number to view the article in the
Microsoft Knowledge Base: 307626
INFO: ASP.NET Configuration Overview
Modification Type: | Major | Last Reviewed: | 10/16/2003 |
---|
Keywords: | kbweb kbBrowse kbConfig kbprb KB828978 kbAudDeveloper |
---|
|