I am not sure if this belongs here or in Programming, but....

I am writing my site that has a bunch of pictures.
The thing is that I am making it as dynamic as possible for my client.
I am trying to make it that all they have to do is change, add, delete pictures from the folder on the server and the page will act accordingly.

Ok, that works fine in ASP.

If I just set the tag as it shows up huge, even though when I check the dimensions of the file in Windows, it is what I need it to be.

my problem is that I don't know the dimensions of the picture, as sometimes they will be Portrait and sometimes Landscape, so I can not set them in the code.

I hope I was clear enough.

Any thoughts.