Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > BackColor attribute in HyperLink doesn't work in Firefox

Reply
Thread Tools

BackColor attribute in HyperLink doesn't work in Firefox

 
 
=?Utf-8?B?U3RldmUgRm9yZA==?=
Guest
Posts: n/a
 
      10-07-2005
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.
 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      10-07-2005
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.



 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RldmUgRm9yZA==?=
Guest
Posts: n/a
 
      10-10-2005
Thanks Bruce, that's exactly what I was loking for.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BackColor binding does not work on postback Dmitry Duginov ASP .Net 7 10-10-2007 02:07 AM
Gridview selectedrowstyle-backcolor does not work when buttons selected?? jobs ASP .Net 1 02-09-2007 10:59 AM
<xs:attribute> with ref attribute nested in <xs:attribteGroup> does't work problem Aray XML 0 12-19-2006 09:22 AM
asp:menu dynamichoverstyle backcolor does not work.. webmaster@1stmiami.com ASP .Net Web Controls 1 07-20-2006 01:15 PM
BackColor on Label doesn't seem to work tshad ASP .Net 3 01-26-2005 12:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57