摘要: //本地路径转换成URL相对路径privatestringurlconvertor(stringimagesurl1){stringtmpRootDir=Server.MapPath(System.Web.HttpContext.Current.Request.ApplicationPath.ToString());//获取程序根目录stringimagesurl2=imagesurl1.Replace(tmpRootDir,"");//转换成相对路径imagesurl2=imagesurl2.Replace(@"\",@"/");r 阅读全文
posted @ 2011-08-05 11:07 biubiubiu 阅读(341) 评论(0) 推荐(0) 编辑