bug - calendar control and .css

K

Keith

I came across what appears to be (and there are several discussions in
this group that seem to agree) a bug with the calendar control and
it's use (or lack thereof) .css

I changed the DayStyle .cssClass property but it is ignored - .NET
still renders each day with style="color:Black".

Anyone find a workaround or...I KNOW, I can just change all our
websites to only use black text so it matches... :)

Thanks for any feedback.
 
S

Scott M.

Well, since inline styles will override style classes, this could be normal
behavior. Look at the resulting HTML and see if the reference to your class
is there, but also look to see if there are inline styles on the HTML as
well, if so, the inline styles will "win".
 
K

Keith

Scott,
Yeah - that's what I did. .NET is sending back inline style -
<...style="color:Black">, which is usurping my class.
I guess it's a bug. Cheers.
 
S

Scott M.

It's not a bug, it just means that you need to change the values that the
inline styles return (via the calendar control's properties in the VS.NET
designer). You can remove any value in the various properties (so that no
inline style will be rendered at all and your class designations will "win")
or you can set these properties to values you want (and avoid the classes
altogether).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top