首页 > 代码库 > 如果一张要显示的图片穿插着两个路径该怎么解决?

如果一张要显示的图片穿插着两个路径该怎么解决?

if (File.Exists(HttpContext.Current.Server.MapPath(stuModel.Head)) != false)

            {

                //DAL.FaceImg faceImgDal = new DAL.FaceImg();

 

                //DownFile(headFirst + smodel.Head, smodel.Head, context);

 

                ////headFirst = "http://192.168.1.112:7101/";

                lterImgHead.Text = string.Format("<img src=http://www.mamicode.com/‘{0}‘ alt=‘‘ width=‘100‘ height=‘100‘ />", AdminPath + (stuModel.Head));

            }

            else

            {

                lterImgHead.Text = string.Format("<img src=http://www.mamicode.com/‘{0}‘ alt=‘‘ width=‘100‘ height=‘100‘ />", AdminBasicPath + (stuModel.Head));

            }

如果一张要显示的图片穿插着两个路径该怎么解决?