I've a page to add type of an event, with a colorpicker.
before i save the selectedcolor to database, i change the color to html color as below:
now, i wanted to add another page for edit type and i tried to get the color code from database display at the colorpicker :
but, the colorpicker didn't display the color i set. Anything i left out?
----------
i've found the problem. thanks
<telerik:RadColorPicker runat="server" ID="RadColorPicker1" Preset="Standard" showicon="true" width="300px" EnableEmbeddedSkins="false"/> |
before i save the selectedcolor to database, i change the color to html color as below:
ColorTranslator.ToHtml(RadColorPicker1.SelectedColor) |
now, i wanted to add another page for edit type and i tried to get the color code from database display at the colorpicker :
RadColorPicker1.SelectedColor = System.Drawing.ColorTranslator.FromHtml(color) |
but, the colorpicker didn't display the color i set. Anything i left out?
----------
i've found the problem. thanks