public static string GetMapPath(string folderPath)
        {
            if (folderPath.IndexOf(":\\") > 0)
            {
                return(TextUtility.AddLast(folderPath, "\\"));
            }
            if (folderPath.StartsWith("~/"))
            {
                return(TextUtility.AddLast(HttpContext.Current.Server.MapPath(folderPath), "\\"));
            }
            string str = HttpContext.Current.Request.ApplicationPath + "/";

            return(TextUtility.AddLast(HttpContext.Current.Server.MapPath(str + folderPath), "\\"));
        }
        public static string GetFullPath(string strPath)
        {
            string text = TextUtility.AddLast(AppDomain.CurrentDomain.BaseDirectory, "\\");

            if (strPath.IndexOf(":") < 0)
            {
                string text2 = strPath.Replace("..\\", "");
                if (text2 != strPath)
                {
                    int num = (strPath.Length - text2.Length) / "..\\".Length + 1;
                    for (int i = 0; i < num; i++)
                    {
                        text = text.Substring(0, text.LastIndexOf("\\"));
                    }
                    text2 = "\\" + text2;
                }
                strPath = text + text2;
            }
            return(strPath);
        }