Image Height and Width values

  • Thread starter Thread starter Blake Versiga
  • Start date Start date
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
 
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

Back
Top