i have a CSS Style in my .css class in which a color is set to Blue for hundret of Buttons.
My customer now wants a option for green buttons, saved by a database field, so I ask the field:
if (!String.IsNullOrEmpty(user.SetColorButtons) && user.SetColorButtons == "Grün")
{
//Change Style
}
Now how to change the css-file here?
Its very hard to not change the file becuase I have arount 300 buttons in this site in around 40 pages, would be the hell to change it in the code in every freaking code behind...
buttonorinputelements? Are you looking for a Javascript solution which works 'on-the-fly'?