J
Jeff
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
background-color #0078ad, which means that the color wasn't changed....
any suggestions?? could Request.Path be the problem??
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
background-color #0078ad, which means that the color wasn't changed....
any suggestions?? could Request.Path be the problem??