Solved

Detect the language setting of any browser

Posted on 2008-10-23
2
691 Views
Last Modified: 2013-11-08
Need a .net vbscript code to run on the homepage of a site that will detect the langauge setting of the browser and and redirect user to appropriate language landing page of the site; something like If language= en-gb then send user to page index_en.aspx . There are 5 langauges- french, german, spanish, dutch and english
0
Comment
Question by:BoydRingrose
2 Comments
 
LVL 18

Expert Comment

by:Ajay Sharma
ID: 22794737
0
 

Accepted Solution

by:
BoydRingrose earned 0 total points
ID: 22795461
On doing some more searching i have now find the solution for getting the browser language is as per code attached. Thanks for your help though .
<%

Dim userLang() As String

 Dim count As Integer
 

 userLang = Request.UserLanguages

 For count = 0 To userLang.GetUpperBound(0)

    Response.Write("User Language: " & Cstr(userLang(count)) & "<br>")

 Next count

%>

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now