Article ID: 315616 - Last Review: July 3, 2008 - Revision: 7.3 How To Detect a Client Language in an Active Server Pages Page in IISThis article was previously published under Q315616 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: http://www.microsoft.com/technet/security/prodtech/IIS.mspx
(http://www.microsoft.com/technet/security/prodtech/IIS.mspx)
For more information about IIS 7.0, visit the following Microsoft Web site: http://www.iis.net/default.aspx?tabid=1
(http://www.iis.net/default.aspx?tabid=1)
On This PageSUMMARY
This step-by-step article describes how to use Active Server Pages (ASP) to test the value of HTTP_ACCEPT_LANGUAGE and return a greeting in an appropriate language. ASP pages generate dynamic content at the Web server and return the content to the Web browser. An ASP page can return different content, depending on the type of browser that made the request. Similarly, an ASP page can return different content that is based on the natural language that is selected in the browser. You can use ASP to detect the default natural language that is selected at the browser. This information is held in an HTTP header variable named HTTP_ACCEPT_LANGUAGE. For example, the value "es-mx,fr,de-ch,en-us" means that the browser accepts the following languages, in order of preference:
RequirementsThe following items describe the recommended hardware, software, network infrastructure, skills and knowledge, and service packs that you need:
Detect the Client Language in an ASP Page
Test the Sample
REFERENCES
For more information about localization issues with scripting, see the following Microsoft Developer Network (MSDN) Web site:
It's All Greek to Me http://msdn.microsoft.com/en-us/library/ms974591.aspx (http://msdn.microsoft.com/en-us/library/ms974591.aspx) | Article Translations
|
Back to the top
