views:

43

answers:

1

Hi, i am having a server control (Asp:Label) and i want to apply the css class dynamically

but it is applying to the label in all browsers except in IE7

in all browsers the dynamic css classes are applying but in IE7 it is not applying

can u give any solution or any alternate solution

Thanks and Regards, Vara Prasad.M

+1  A: 

When the html is rendered in IE7, does it properly show

<span class="liforrent" id="lblPrice"></span>

or something similar?

If so, what does your css look like? Are you using something like css hacks which can get misinterpreted by IE7?

Edit: I suggest you download and install Internet Explorer Developer Toolbar to see what styles are put over the span tag in IE7 and resolve it that way.

XIII
<span id="lblPrice" class="liforrent">$0.00</span> and it is not showing the label only in IE7 and in remaining all browsers it is showing the color.Thanks in Advance
Vara Prasad.M
i have the internet explorer developer toolbar and with that i am unable to resolve the issueas in the aspx.cs file i am adding the attributes dynamically because for different scenarios i used to have different colors so how is it possible to have different colors programatically in ie7. in only ie7 i am having this type of issue in remaining all browsers it is working fine.Thanks in advance and waiting the reply as soon as possible
Vara Prasad.M
XIII