string fullName= this.FileUpload1.PostedFile.FileName;
if (this.FileUpload1.HasFile)
{
System.Drawing.Image image = System.Drawing.Image.FromFile(fullName);
int width = image.Width;
int height = image.Height;
Response.Write(width+","+height);
}
转载于:https://www.cnblogs.com/n666/archive/2009/10/23/2191061.html