Author: audun.net | Posted on: 4/16/2009 5:05:52 PM | Views : 440

hi

asp.net 2.0

I have this markup on my webpage. in the code I try to change the background
color of this div. but the background color isn't changed...
<div id="divQuery" runat="server" visible="false"
style="background-color:#0078ad; color:White; text-align:center;
font-size:12px; font-weight:bolder; font-family:Verdana; padding-bottom:5px;
padding-top:5px;">
    <asp:Literal ID="litQuery" runat="server"></asp:Literal>
</div>

this is the code I use to change the background color:
if (Request.Path == "/test/games.aspx")
 divQuery.Style["background-color"] = "#434087";

This code works in IE7, Opera and FiewFox but not in IE6, IE8

I've seen in the html output of the page that the div above has the
backg ...

Go to the complete details ...