Response.Write(System.IO.Path.GetExtension(strFileNamePath))Response.Write(System.IO.Path.GetFileName(strFileNamePath))