Can someone tell me how to set a:visited and a:hover programmatically? I am dynamically building up some hyperlinks server-side and want to know how to specify unique css behaviour for each link. Otherwise I would set them all in a stylesheet.
Can someone tell me how to set a:visited and a:hover programmatically? I am dynamically
Share
If you want to set the style for a single item, you can use the
CssClassattribute, then set up the classes in your css.In your codebehind: