hi friends ,

i generated anchor control dynamically but the problem is i am not getting how to change on the color on anchor link visted pls give any idea to do this thanks in advance[code language = C#]
i generated anchor control dynamically but the problem is i am not getting how to change on the color on anchor link visted pls give any idea to do this thanks in advance

Hi Vytla

You could change anchor colors through the use of CSS.
You could use the following ways with CSS:

1.

a:visited{
color: #003300;
}

But this appraoch will affect all the anchor tags in a page.

2. If you could insert a class attribute to the dynamically generated anchor then following code should work

.classname{
color:#234332;
}

Hope it helps

Regards

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.