ItemTemplate - Visited Link

P

PD

I have the following ItemTemplate in a datagrid:

<asp:TemplateColumn ItemStyle-Width="35"
ItemStyle-HorizontalAlign=Center ItemStyle-CssClass="LinkClass">
<ItemTemplate>
<a href="#" class="LinkClass" name="lnkopenImage<%#
Container.ItemIndex%>" id="lnkopenImage<%# Container.ItemIndex%>"
onclick="javascript:OpenImage('<%# DataBinder.Eval(Container.DataItem,
"reportID")%>', '<%# DataBinder.Eval(Container.DataItem,
"reportVersionID")%>', '<%# DataBinder.Eval(Container.DataItem,
"reportSectionID")%>', '<%# Container.ItemIndex%>'); return
false;">View</a>
</ItemTemplate>
</asp:TemplateColumn>

LinkClass A:visited
{
color:Red;
}

When the datagrid paints onto the page, the control changes to the
default color for a visited link. It doesn't even change it to red as
is set in the stylesheet. As you can see, I tried putting in a new
class for that particular control with the grid. No luck. Once, the
grid is painted, the link is automatically set to "visited". Any
suggestions on how I can get this to not happen. I just want the color
to change after it has been clicked.

Thanks in advance!
Patrick
 

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
474,034
Messages
2,570,356
Members
47,002
Latest member
RobertoLip

Latest Threads

Top