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
Post a Comment