Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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>

Posted

You say

 

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

 

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

Posted
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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...