getting Image height

K

karimL

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
 
K

Ken Cox [Microsoft MVP]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top