Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > bug - calendar control and .css

Reply
Thread Tools

bug - calendar control and .css

 
 
Keith
Guest
Posts: n/a
 
      03-27-2007
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.

 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      03-27-2007
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".


"Keith" <> wrote in message
news: oups.com...
>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.
>



 
Reply With Quote
 
 
 
 
Keith
Guest
Posts: n/a
 
      03-28-2007
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.

On Mar 27, 5:41 pm, "Scott M." <NoS...@NoSpam.com> wrote:
> 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".
>
> "Keith" <kst...@nycap.rr.com> wrote in message
>
> news: oups.com...
>
>
>
> >I came across what appears to be (and there are several discussions in
> > this group that seem to agree) abugwith thecalendarcontrol 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.- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      03-28-2007
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).


"Keith" <> wrote in message
news: ups.com...
> 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.
>
> On Mar 27, 5:41 pm, "Scott M." <NoS...@NoSpam.com> wrote:
>> 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".
>>
>> "Keith" <kst...@nycap.rr.com> wrote in message
>>
>> news: oups.com...
>>
>>
>>
>> >I came across what appears to be (and there are several discussions in
>> > this group that seem to agree) abugwith thecalendarcontrol 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.- Hide quoted text -

>>
>> - Show quoted text -

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible Bug In the Calendar Control on web forms. =?Utf-8?B?TWFyaWFubyBQYWRpbGxh?= ASP .Net 2 01-28-2006 04:37 PM
Thunderbird Calendar with Exchange 2003 Calendar and Public FoldersCalendar jincmcse Firefox 1 09-03-2005 02:46 AM
How to make a week view and day view calendar just like month view calendar in .NET ? Parthiv Joshi ASP .Net Web Controls 1 07-06-2004 03:15 PM
Calendar Control - Programatically set the calendar to a date range Shevek ASP .Net 3 06-23-2004 01:41 PM
Calendar Control - Programatically set the calendar to a date range Shevek ASP .Net Web Controls 0 06-23-2004 12:06 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57