I created dynamically HyperLink. And I want to change the color by adding a color code.
HyperLink hpl = new HyperLink();
hpl.Text = "SomeText";
hpl.ForeColor = "#5BB1E6";
//Cannot implicitly convert type 'string' to 'System.Drawing.Color
But I can not.
How to add color code in ForeColor?
Is it possible?
source
share