I have a datalist issue

erikkl2000

Newcomer
Joined
Jun 19, 2005
Messages
6
Ok, I AM going on a week with a datalist dilemma. :mad:

For some reason I can not get rid of the blue (Sometimes Purple) hyperlink line around my pics in my datalist.

I have set all the borders to (0) and still no luck.


What am i missing?????

===============HTML BELOW=================

<asp:datalist id="dl1" runat="server" ShowHeader="False" ShowFooter="False" RepeatDirection="Horizontal"
Height="20px" RepeatLayout="Flow" BorderColor="White" BackColor="White" CellPadding="4" GridLines="None"
BorderWidth="0px" AlternatingItemStyle-Wrap="false" Visible="true">
<ItemTemplate>
<table>
<tr>
<TD><A href='<%# DataBinder.Eval(Container.DataItem, "ProductName", "Products.aspx?idDept={0}") %>'><IMG src='<%# DataBinder.Eval(Container.DataItem, "ProductImage", "images/{0}") %>'>
</A>
</TD>
</tr>
</table>
</ItemTemplate>
<HeaderStyle Font-Bold="True" ForeColor="#FFFFCC" BackColor="#990000"></HeaderStyle>
</asp:datalist></TD>
 
You say

<IMG src='<%# DataBinder.Eval(Container.DataItem, "ProductImage", "images/{0}") %>' border=0>

doesn't work? Or were you setting something else's border?
 
bri189a said:
You say

<IMG src='<%# DataBinder.Eval(Container.DataItem, "ProductImage", "images/{0}") %>' border=0>

doesn't work? Or were you setting something else's border?


That was exactly the problem. I can not believe that i never thought to set the border attribute for that control. I know what i was doing; i was assuming that since i set the border in the propertys menu that, that would of taken care of the problem.

Thank you!
 
Back
Top