System.Drawing.Image logo = System.Drawing.Image.FromFile(Server.MapPath(ImageButton1.ImageUrl)); double kuan = logo.Width;