J
Jeff
ASP.NET 2.0
I'm wondering how to set the color of a visited HyperLinkField (the link
text) in a GridView??
Here is the markup of the HyperLinkField I have problems with:
<asp:HyperLinkField HeaderText="Subject" Text="Subject"
DataTextField="Subject" DataNavigateUrlFields="Id"
DataNavigateUrlFormatString="~/Templates/View.aspx?id={0}"
HeaderStyle-CssClass="columnStyle" ItemStyle-CssClass="columnStyle" />
Okay, I've already tryed this:
a:visited{
color:green;
}
I cannot use this css code because it set the color on all visited link on
my webpage. That is something I don't want. I want to set the color of
visited links within a GridView only.
I also tryed this:
GridView a:visited
{
color:Orange;
} -> but that didn't change the color within my GridView, infact no links on
my webpage was affected by this css class
Any suggestions?
Best Regards!
Jeff
I'm wondering how to set the color of a visited HyperLinkField (the link
text) in a GridView??
Here is the markup of the HyperLinkField I have problems with:
<asp:HyperLinkField HeaderText="Subject" Text="Subject"
DataTextField="Subject" DataNavigateUrlFields="Id"
DataNavigateUrlFormatString="~/Templates/View.aspx?id={0}"
HeaderStyle-CssClass="columnStyle" ItemStyle-CssClass="columnStyle" />
Okay, I've already tryed this:
a:visited{
color:green;
}
I cannot use this css code because it set the color on all visited link on
my webpage. That is something I don't want. I want to set the color of
visited links within a GridView only.
I also tryed this:
GridView a:visited
{
color:Orange;
} -> but that didn't change the color within my GridView, infact no links on
my webpage was affected by this css class
Any suggestions?
Best Regards!
Jeff