B
Brett Baisley
Hello
I need help with some ASP.net programming. I have a web page that basically
just has the following web components: dropdownlist, listbox and image.
I am using VB.net with a CodeBehind file to read the contents of a directory
into the dropdownlist. Then when the user picks one, it displays a list of
the images in that dir in the listbox. Then when you pick a filename from
the listbox, it displays the image.
It all works, but I would like to do is if the image is bigger then 500
pixels in width, I would like it to scale the image accordingly to max out
at 500.
The part I am having trouble is getting the size of the image to check it.
Can anyone help?
I need help with some ASP.net programming. I have a web page that basically
just has the following web components: dropdownlist, listbox and image.
I am using VB.net with a CodeBehind file to read the contents of a directory
into the dropdownlist. Then when the user picks one, it displays a list of
the images in that dir in the listbox. Then when you pick a filename from
the listbox, it displays the image.
It all works, but I would like to do is if the image is bigger then 500
pixels in width, I would like it to scale the image accordingly to max out
at 500.
The part I am having trouble is getting the size of the image to check it.
Can anyone help?