Link to home
Start Free TrialLog in
Avatar of arthurh88
arthurh88

asked on

ASP.NET how to Get Image Height as an Integer

Given the control Image1.  How do I get its height as an integer?

Dim Height as Integer = Image1.Height

fails with the error "value of type 'System.Web.Ui.Webcontrols.Unit' cannot be converted to 'Integer'

I need the height in an integer format so that I can use a formula to change it.
ASKER CERTIFIED SOLUTION
Avatar of CutSack
CutSack

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial