Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > ItemTemplate - Visited Link

Thread Tools

ItemTemplate - Visited Link

Posts: n/a
I have the following ItemTemplate in a datagrid:

<asp:TemplateColumn ItemStyle-Width="35"
ItemStyle-HorizontalAlign=Center ItemStyle-CssClass="LinkClass">
<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

LinkClass A:visited

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!

Reply With Quote

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
how to set link's "visited" property/pseudo-class without clicking on the link friday13 Javascript 3 04-28-2007 12:14 AM
3rd party link button won't retain visited color Dot net work ASP .Net 2 02-11-2005 03:01 PM
can code inside a Repeater's ItemTemplate modify controls in the ItemTemplate? Bennett Haselton ASP .Net 1 09-24-2004 01:59 AM
Change text color of "visited link" back to unvisited color ??? Matt Adams HTML 0 08-26-2003 10:27 AM
Re: Visited Link Color Question Adrienne HTML 0 08-16-2003 03:43 AM