获取文件扩展名:由filename |嗨...我要问的东西,, 如何获取文件扩展名由filename 我有下面的代码:string id = "34"; string ext = System.IO.Path.GetExtension(Server.MapPath(Request.ApplicationPath + @"\Images\") + id); Response.Write(ext); 修改我的代码,请...
string id = "34"; string ext = System.IO.Path.GetExtension(Server.MapPath(Request.ApplicationPath + @"\Images\") + id); Response.Write(ext);