jano_alex_es 0 Newbie Poster

Hyperlink problem
Posted: 07-09-2008 04:34 AM
Hi,

I'm working in a application C# and ASP.NET and in some moment we are creating few hyperlinks dinamically inside a panel:

HyperLink hl;
for (int i = 0; i <= XmlFile.ListLinks.Count - 1; i++)
{

hl = new HyperLink();
hl.Text = ListLinks[0];

//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
hl.Attributes.Add("style", "asp:hyperlink:hover {COLOR: #FF7518;}");
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

//Plinks is the name of the panel
PLinks.Controls.Add(hl);
}

What I want to do is to change that attribute in order to control the color of the hyperlink when the it's clicked, or when mouseover... the code I've written it's not correct, but I think it has to be something similar.

thanks!