SharePoint 2010 - Current Variation / Variation Labels

If you're trying to develop a web part, which utilizes the variation title and doing so by accessing the variation labels lists in SharePoint 2010 and experiencing problems, give this function a try. I've written it to compare the accessible locales against that of the current web LCID.
public static string GetCurrentWebRegionLabel()
     string strLabel = "USEN";
          ReadOnlyCollection _variations = 
          strLabel = _variations.FirstOrDefault(m =>      
     return strLabel;
Post a Comment

Popular posts from this blog

C# - ListView Item Spacing (Padding)

IIS / ASP.NET - Disabling Compatibility Mode/View (Internet Explorer)

C# - Performance Counters