Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 10, 2012 12:29 PM by abdullahhazaea
Mar 08, 2012 08:53 PM|LINK
I have a repeater control which holds the photos in the following way in the item template
<div style="float: right; height: 400px; width: 500px; border-left: 1px solid black; padding-top: 25px; text-align: center;">
<img src='Photo.aspx?MaxHeight=390&MaxWidth=490&PhotoId=<%# Eval("CustomerID") %>' alt='' />
But the problem is that the image is overlapping the border and is not alligned inside the box.
Can someone help fix it so that it just remains inside the div..Thank you in advance
Mar 08, 2012 08:57 PM|LINK
Can you try with <asp:image> control ?
Mar 08, 2012 09:26 PM|LINK
thanks shelly.. but what i basically need is that the image size is standard and it should push the border of the repeater column and not overlap it
Mar 08, 2012 10:07 PM|LINK
When i try to do this , i am not able to see the image...Please suggest..thank you
<asp:Image ID="Image1" ImageUrl='<%# "Photo.aspx?MaxHeight=390&MaxWidth=490&PhotoId="+ Eval("CustomerID")%>' runat="server" />
Mar 09, 2012 11:56 AM|LINK
Things in QueryString won't influence style. Give your img style="widht:390px;height:490px;".
Mar 10, 2012 12:29 PM|LINK
you should define separator template in repeater control