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)
"Steve Ford" <Steve
> wrote in message
news:6D5890FB-D4FD-4848-833F-...
>I have a datagrid that contains the following template column:
>
> <ItemTemplate>
> <asp:HyperLink ID="partyColour" Runat="server" BackColor='<%#
> System.Drawing.Color.FromName(DataBinder.Eval(Cont ainer.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.