Ejemplo n.º 1
0
/*
 */
        public string SetPicPath(object iCat, object oUser, object oImgPath)//, object uD)
        {
            //set to clear pic for default
            string retVal = "images/s1x1.gif";
            string strImgPath;// = "thmbNail_" + oImgPath.ToString();

            //get the user dir for the person who posted
            //string iId = Global.ReplaceEx(SQLReader["userDir"].ToString(), @"\", @"/");

            if (oImgPath == DBNull.Value || oImgPath.ToString() == "")
            {
                return(retVal);
            }
            else
            {
                string strServerURL;
                strImgPath = "thmbNail_" + oImgPath.ToString();

                hdnServer.Value = System.Configuration.ConfigurationSettings.AppSettings["ServerURL"];
                strServerURL    = hdnServer.Value;
                //retVal = strServerURL + "/users/" + iId + iCat.ToString() + "/" + Path.GetFileName(strImgPath);

                retVal = strServerURL + "/users/" + oUser.ToString() + Global.DecodeCategory(iCat) + "/" + Path.GetFileName(strImgPath);
            }
            return(retVal);
        }