public static string GetGlobalResourceString(BasePage page, Core.GridColumn column, string ResourceKeyPrefix, string ResourceKey, string DefaultValue) { string retVal = null; string ResourceSet = Common.StripVirtualPath(page.Request.Url.AbsolutePath); retVal = GetGlobalResourceString(page, column, ResourceSet, ResourceKeyPrefix, ResourceKey, DefaultValue); return(retVal); }
public static string GetGlobalResourceString(BasePage page, Core.GridColumn column, string ResourceSet, string ResourceKeyPrefix, string ResourceKey, string DefaultValue) { string retVal = DefaultValue; string ActualResourceKey = ""; if (String.IsNullOrEmpty(ResourceKeyPrefix)) { ActualResourceKey = String.Format("{0}.{1}", column.UniqueName, ResourceKey); } else { ActualResourceKey = String.Format("{0}.{1}.{2}", ResourceKeyPrefix, column.UniqueName, ResourceKey); } retVal = page.GetGlobalResourceString(ResourceSet, ActualResourceKey, DefaultValue); return(retVal); }