private LanguageStrings GetMapLanguageStrings(string LanguageFolderPath, string LangCode)
    {
        LanguageStrings RetVal = new LanguageStrings();
        string MapSettingFile = string.Empty;
        string xmlNodePath = string.Empty;
        XmlFileReader objxmlFilereader = null;

        try
        {
            MapSettingFile = Path.Combine(LanguageFolderPath, LangCode) + "\\" + Constants.Map.MapLanguageFileName;
            objxmlFilereader = new XmlFileReader(MapSettingFile);

            if (objxmlFilereader != null)
            {
                RetVal.DisclaimerText = objxmlFilereader.GetXMLNodeAttributeValue(Constants.Map.MapLangXPath.Replace(Constants.Map.LangReplaceXPathString, "langMapDisclaimerText"), Constants.Map.XMLValueAtributeName);
                RetVal.MissingValue = objxmlFilereader.GetXMLNodeAttributeValue(Constants.Map.MapLangXPath.Replace(Constants.Map.LangReplaceXPathString, "langMissingValue"), Constants.Map.XMLValueAtributeName);
                RetVal.Map = objxmlFilereader.GetXMLNodeAttributeValue(Constants.Map.MapLangXPath.Replace(Constants.Map.LangReplaceXPathString, "langMap"), Constants.Map.XMLValueAtributeName);
                RetVal.Data = objxmlFilereader.GetXMLNodeAttributeValue(Constants.Map.MapLangXPath.Replace(Constants.Map.LangReplaceXPathString, "langData"), Constants.Map.XMLValueAtributeName);
                RetVal.Source = objxmlFilereader.GetXMLNodeAttributeValue(Constants.Map.MapLangXPath.Replace(Constants.Map.LangReplaceXPathString, "langSource"), Constants.Map.XMLValueAtributeName);
                RetVal.MostRecentData = objxmlFilereader.GetXMLNodeAttributeValue(Constants.Map.MapLangXPath.Replace(Constants.Map.LangReplaceXPathString, "langMostRecentData"), Constants.Map.XMLValueAtributeName);
                RetVal.Theme = objxmlFilereader.GetXMLNodeAttributeValue(Constants.Map.MapLangXPath.Replace(Constants.Map.LangReplaceXPathString, "langTheme"), Constants.Map.XMLValueAtributeName);
            }

            if (string.IsNullOrEmpty(RetVal.MostRecentData))
                RetVal.MostRecentData = new LanguageStrings().MostRecentData;

            if (string.IsNullOrEmpty(RetVal.Theme))
                RetVal.Theme = new LanguageStrings().Theme;
        }
        catch (Exception ex)
        {
            RetVal = null;
            Global.CreateExceptionString(ex, null);

        }

        return RetVal;
    }
    private string GetlanguageBasedValueOfKey(string key, string languageCode, string pageName)
    {
        string RetVal;
        string LanguageFolderPath;
        string LanguageFile;
        XmlFileReader objxmlFilereader;

        RetVal = string.Empty;
        objxmlFilereader = null;

        try
        {
            LanguageFolderPath = Path.Combine(HttpContext.Current.Request.PhysicalApplicationPath, Constants.FolderName.Language);
            LanguageFile = Path.Combine(LanguageFolderPath, languageCode) + "\\" + pageName;
            objxmlFilereader = new XmlFileReader(LanguageFile);
            if (objxmlFilereader != null)
            {
                RetVal = objxmlFilereader.GetXMLNodeAttributeValue(Constants.Map.MapLangXPath.Replace(Constants.Map.LangReplaceXPathString, key), Constants.Map.XMLValueAtributeName);

            }

        }
        catch (Exception ex)
        {
            Global.CreateExceptionString(ex, null);
            throw ex;

        }
        finally
        {

        }

        return RetVal;
    }