Wednesday, August 19, 2009

Convert String to System.Drawing.Color in ASPX C#

System.Drawing.Color c = System.Drawing.ColorTranslator.FromHtml("#F5F7F8");
String strHtmlColor = System.Drawing.ColorTranslator.ToHtml(c);

No comments:

Post a Comment