HI I use below code for changing linkbutton color
(sender as LinkButton).ForeColor = System.Drawing.Color.Red;
I want use color code instead of color name
EX:here use RED color but I want use this color #02ca02
How I can do it?
thanks alot
This way
(sender as LinkButton).ForeColor = System.Drawing.ColorTranslator.FromHtml("#FF0000");
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.