c# - Making my color set to a variable -


i trying set color in span style variable...anyone know why wrong?

<span style="font-weight:bold; color:"<%= accountwarningstyle %>"; font-size:14px;"></span> 

accountwarningstyle c# variable

you need remove quote marks around `<%= accountwarningstyle%>". render as:

<span style="font-weight:bold; color:"red"; font-size:14px;"> 

where should be:

<span style="font-weight:bold; color:red; font-size:14px;"> 

Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -