473,503 Members | 1,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

bug - calendar control and .css

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.

Mar 27 '07 #1
3 1886
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" <ks****@nycap.rr.comwrote in message
news:11**********************@e65g2000hsc.googlegr 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.

Mar 27 '07 #2
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.comwrote:
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.comwrote in message

news:11**********************@e65g2000hsc.googlegr 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 -

Mar 28 '07 #3
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" <ks****@nycap.rr.comwrote in message
news:11*********************@e65g2000hsc.googlegro 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.comwrote:
>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.comwrote in message

news:11**********************@e65g2000hsc.googleg roups.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 -


Mar 28 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3639
by: Tim Graichen | last post by:
Hello, I am making use of the Active X calendar control (mscal.Calendar.7) in several places in my main form, with the following code Below is an example of the code I'm using for the...
5
4587
by: Miguel Dias Moura | last post by:
Hello, i am trying to create a .css file with several styles and apply them to the calendar control so i can change the look of: 1. Text Type and Format (Bold, Underline, etc) 2. Background...
1
2140
by: bill yeager | last post by:
I would like to place the currently selected date (retrieved from the database) on a calendar control which is embedded inside a datagrid. However, I can't find the ID of the control to do so....
0
1721
by: maxrawson | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
2
3400
by: Caesar Augustus | last post by:
First, let me start by saying my asp.net experience is still in it's infancy so please bare with me as I try to explain my situation. I have created a single page that with the use of many...
3
850
by: Peter | last post by:
Is there anyway to make the System.Web.UI.WebControls.Calendar to display only Month Name and Year, like: January, 2006 February, 2006 ..... .... .... ....
3
2621
by: =?Utf-8?B?UGFycm90?= | last post by:
I applied the following Ajax code in my web page which has a calendar control to keep my page from completely reloading everytime something was changed. <atlas:ScriptManager ID="ScriptManager1"...
7
2357
by: John Kotuby | last post by:
Hi all, I am trying to use a calendar server control which I have ID="Calendar1" in the source code. What I am trying to do is emulate a JavaScript calendar that was being used in an older ASP...
6
1952
by: thorpk | last post by:
I have an access database that i have added a pop up calendar to, the Table information for the Date Reported field is Date/Time format short date, input mask is 00/00/0000. i have created a...
3
2703
by: thorpk | last post by:
I posted this problem earlier in the month and some one decided it was better to change the subject and ask a completely different question. I am therefore reposting. I am hoping some one can...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.