Groups | Blog | Home
all groups > asp.net webcontrols > january 2004 >

asp.net webcontrols : getting Image height


karimL
1/28/2004 5:32:06 PM
Hi,
how can I retrieve the height and width of
a System.Web.UI.WebControls.Image after populating it's ImageUrl property.
It's seems not to be filled ?
Does someone have a solution ?

Thanks
Karim
Ken Cox [Microsoft MVP]
1/28/2004 9:28:51 PM
I think you'll find that unless you set the Image Web control's height at
design-time or programmatically, you have no way of getting it.

I'm wondering if there is a way to load the image through another object to
get its dimensions?


[quoted text, click to view]
AddThis Social Bookmark Button