SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get the selected language in the screenshot, from inside of a webpart?

alt text

I'm using SharePoint 2010. My webpart is a "visual web part" created in VS2010.

I'm trying things like SPContext.Current.Web.CurrentUser.RegionalSettings and SPContext.Current.Web.Language" but ofcourse these things have nothing to do with that setting. :-|

Can someone please help me? What property am I looking for.

share|improve this question
Please note. If user changed UI language via interface, System.Threading.Thread.CurrentThread.CurrentUICulture.LCID keeps previous value. Use cookie "lcid" to get actual culture. – Alexey Zakharenko Sep 25 '15 at 8:21
up vote 10 down vote accepted

Use the System.Threading.Thread.CurrentThread.CurrentUICulture.LCID to get the current LCID

share|improve this answer
oh god.. thanks – thomas.stock May 26 '10 at 15:11
also System.Globalization.CultureInfo.CurrentUICulture.LCID is the same. – Oleg Savelyev Apr 30 '13 at 13:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.