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

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -