示例#1
0
        public static string GetGlobalResourceString(BasePage page, Core.Grid grid, string ResourceKeyPrefix, string ResourceKey, string DefaultValue)
        {
            string retVal      = null;
            string ResourceSet = Common.StripVirtualPath(page.Request.Url.AbsolutePath);


            retVal = GetGlobalResourceString(page, grid, ResourceSet, ResourceKeyPrefix, ResourceKey, DefaultValue);

            return(retVal);
        }
示例#2
0
        public static string GetGlobalResourceString(BasePage page, Core.Grid grid, string ResourceSet, string ResourceKeyPrefix, string ResourceKey, string DefaultValue)
        {
            string retVal = DefaultValue;

            string ActualResourceKey = "";

            if (String.IsNullOrEmpty(ResourceKeyPrefix))
            {
                ActualResourceKey = String.Format("{0}", ResourceKey);
            }
            else
            {
                ActualResourceKey = String.Format("{0}.{1}", ResourceKeyPrefix, ResourceKey);
            }



            retVal = page.GetGlobalResourceString(ResourceSet, ActualResourceKey, DefaultValue);



            return(retVal);
        }