Hi,
Image is not placing properly,
I have a div with height and width as 302*302,then,
I want to place the image,whatever the image size should be(eg:-1024*768,250*250)
The image must viewed completely in that div.
I had tried but,I can't.
Plz help me
Loading
Yashwanth SannithiPosted Jul 18, 2012, 3:23 AM
Here the div size is 302*302 ,it can't be change.
Imagine that, when we upload the file taking the image 1024*768 then,
it should be automatically resized in code behind and it will show as 302*302.
Plz help me.
SenthilkumarPosted Jul 17, 2012, 2:11 AM
But when you fix the height and width to the control then it may be small image still it will show the image as width and height specified. Quality and stretch will be there.
If you have a big size image and show it as width and height specified then again quality will e problem.
If you want to show the original image as it is then do not set any height and width to the control.