Author: greecemonkey | Posted on: 11/23/2010 7:07:30 AM | Views : 729

Hi, 
I had a problem that took me ages to solce, which rurned out to be that some of the search engines dont set a launguage. My code was working fine for user but not for SE's.
After a load of testing and checking (2 days) I discovered that the problem was with the HttpContext.Current.Request.UserLanguages(0).ToString line in the code.
I have written this function below, but looks to me like I am using the try when it should be an if or somehow testing of it is NULL - is this the right way to do this.

 Function GetUserLanguage() As String    ...

Go to the complete details ...