Image Height and Width values

B

Blake Versiga

After pulling an image from the data base and the Image.Height and
Image.Width are not set to the ImageURL's attributes.

1) Is there a way to have these properties updated? or

2) How do I get the image height and width to store?

Thanks in advance.
Blake Verisga
 
S

Showjumper

Will this help?

Protected WithEvents About As System.Web.UI.WebControls.Image
And then in your sub:
About.Attributes.Add("height", 15)
About.Attributes.Add("width", 130)
Or whatever the values are for the height and width
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top