BackColor attribute in HyperLink doesn't work in Firefox

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.
 
B

Bruce Barker

you need an update browsercaps file for aps.net to output style command for
any browser other then IE. google this newgroup for browsercap to find an
update.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top