使上传的图片显示它原有的格式

if (FileUpload1.HasFile)
{
string strType=FileUpload1.PostedFile.ContentType;
if (strType == "image/bmp" || strType == "image/jpeg" || strType == "image/png" || strType == "image/gif")
{
string strFileName = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString() + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
FileUpload1.SaveAs(Server.MapPath("images/" + strFileName + strType.ToString()));
Image1.ImageUrl = "images/" + strFileName + strType.ToString();
Response.Write("上传成功!");
}
else
{
Response.Write("文件类型不正确!");
}
}
else
{
Response.Write("请选择文件");
}

            应该怎样去改,求解

把if条件去掉,不限制文件类型

我想在这四个文件类型范围内去显示图片自己的格式,可以吗

你的代码就是保持原有格式,你并没有任何转换格式的代码。现在什么问题?