Esempio n. 1
0
        public static string FullPath(string local)
        {
            string result;

            if (string.IsNullOrEmpty(local))
            {
                result = local;
            }
            else
            {
                if (local.ToLower(CultureInfo.InvariantCulture).StartsWith("http://"))
                {
                    result = local;
                }
                else
                {
                    if (HttpContext.Current == null)
                    {
                        result = local;
                    }
                    else
                    {
                        result = Globals.FullPath(Globals.HostPath(HttpContext.Current.Request.Url), local);
                    }
                }
            }
            return(result);
        }