I have a color System.Drawing.Color.DarkMagenta
I would like to output it to the browser as its hex color(not sure what it
is) #993484
This seems like it should work but it isn't.
------------------------------------------------------------------
System.Drawing.Color c = System.Drawing.Color.DarkMagenta;
string HtmlColor = System.Drawing.Color.ToHtml(c);
Response.Write(HtmlColor); //Outputing "DarkMagenta"
------------------------------------------------------------------
Shouldn't the ToHtml() method give me a hex string representation instead of
the color name?
Anyone got any ideas?
--
Ron Vecchi