protected string GetResouseValue(string key) { try { string resourceValue = ""; CultureInfo ci = CultureInfo.CurrentCulture; resourceValue = new ResourceManager(typeof(Resource)).GetString(key, ci); if (string.IsNullOrEmpty(resourceValue)) { resourceValue = "Undefine"; } return resourceValue.Replace("'", "''"); } catch (Exception) { return "Undefine"; } }