study123
string ImgPath = ImgPath.PostedFile.FileName; //获取完整路径
string ImgName = ImgPath.Substring(ImgPath.LastIndexOf("\\") + 1);//获取文件名.后缀名
string ImgExtend = ImgPath.Substring(ImgPath.LastIndexOf(".") + 1);//获取后缀名

分类:

技术点:

相关文章: