ASP.Net incorrect background image style rendered
Posted
by user144612
on Stack Overflow
See other posts from Stack Overflow
or by user144612
Published on 2010-03-27T20:16:56Z
Indexed on
2010/03/27
20:23 UTC
Read the original article
Hit count: 235
Using ASP.Net, I have a server control for which i would like to add the inline css style "background-image:none". However, when i call:
writer.AddStyleAttribute("background-image", "none");
The following inline style is generated (and tries to resolve the url "none"):
background-image:url(none)
Is there a special syntax I can use to set the background image to none inline?
© Stack Overflow or respective owner