G
Guest
I have a datagrid that contains the following template column:
<ItemTemplate>
<asp:HyperLink ID="partyColour" Runat="server" BackColor='<%#
System.Drawing.Color.FromName(DataBinder.Eval(Container.DataItem,
"PartyColour").ToString()) %>' NavigateUrl='<%# Request.ApplicationPath +
"/Party.aspx?partyID=" + DataBinder.Eval(Container.DataItem,
"Party").ToString() %>'>
<asp:Image Runat="server" ImageUrl="../images/Pixel.gif" Height="20"
Width="20" BorderWidth="1" BorderColor="#000000" />
</asp:HyperLink>
</ItemTemplate>
This is intended to display a 20 x 20 pixel block of colour (as specified by
the PartyColour column in the bound dataset) . It works fine in IE but
neither the colour nor the border appear when viewed using Mozilla Firefox.
When comparing the IE and Firefox page source side by side, the FF source
contains no style information at all for this column. Any ideas how to
resolve this problem?
Many thanks in advance.
<ItemTemplate>
<asp:HyperLink ID="partyColour" Runat="server" BackColor='<%#
System.Drawing.Color.FromName(DataBinder.Eval(Container.DataItem,
"PartyColour").ToString()) %>' NavigateUrl='<%# Request.ApplicationPath +
"/Party.aspx?partyID=" + DataBinder.Eval(Container.DataItem,
"Party").ToString() %>'>
<asp:Image Runat="server" ImageUrl="../images/Pixel.gif" Height="20"
Width="20" BorderWidth="1" BorderColor="#000000" />
</asp:HyperLink>
</ItemTemplate>
This is intended to display a 20 x 20 pixel block of colour (as specified by
the PartyColour column in the bound dataset) . It works fine in IE but
neither the colour nor the border appear when viewed using Mozilla Firefox.
When comparing the IE and Firefox page source side by side, the FF source
contains no style information at all for this column. Any ideas how to
resolve this problem?
Many thanks in advance.