I am working in jQuery Color Picker. I am having a constant data in my web.config file.
<add key="colorCode" value="8A2BE2,0000FF,A52A2A,D87093,00FFFF,FFE4C4,008080,FF00FF,B8860B,FF8C00,800080,DA70D6,40E0D0"/>
I my aspx page, i am having the method like
var colorCode = '<%=ConfigurationManager.AppSettings["colorCode"]%>';
$(function () {
$('#color3').colorPicker({ pickerDefault: "ffffff", colors: [colorCode], transparency: true });
});
The color picker is not recognising the colors which i had given in the web config file. How to fix this.