I\'m using asp.net 3.5 and c# on my web site. Here is my question:
I have an upload button and asp:Image on a page. An user can upload an image from his computer and
Try the following:
public bool ValidateFileDimensions() { using(System.Drawing.Image myImage = System.Drawing.Image.FromStream(FileUpload1.PostedFile.InputStream)) { return (myImage.Height == 140 && myImage.Width == 140); } }