473,657 Members | 2,513 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:Bl ack".

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 1892
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.r r.comwrote in message
news:11******** **************@ e65g2000hsc.goo glegroups.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:Bl ack".

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="colo r: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.r r.comwrote in message

news:11******** **************@ e65g2000hsc.goo glegroups.com.. .
I came across what appears to be (and there are several discussions in
this group that seem to agree) abugwith thecalendarcont rol 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:Bl ack".
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.r r.comwrote in message
news:11******** *************@e 65g2000hsc.goog legroups.com...
Scott,
Yeah - that's what I did. .NET is sending back inline style -
<...style="colo r: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.r r.comwrote in message

news:11******* *************** @e65g2000hsc.go oglegroups.com. ..
>I came across what appears to be (and there are several discussions in
this group that seem to agree) abugwith thecalendarcont rol 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:Bl ack".
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
3664
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 controls. Private Sub DateSold_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) SoldCal.Visible = True
5
4594
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 Color 3. Foreground Color 4. Border Tickness 5. Border Color
1
2152
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. During the "Edit" command of the grid, I have the following code: <code> If e.CommandName = "Edit" Then Dim myDatagridItem As DataGridItem Dim lblStartDate As Label Dim lblEndDate As Label
0
1735
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 controls (i.e. roundedcorners component www.4guysfromrolla.com], buttons and panels) functions like a tab control. The buttons are programmatically designed to make the corresponding panel visible. Sample aspx.vb code:
2
3409
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 controls (i.e. roundedcorners component www.4guysfromrolla.com], buttons and panels) functions like a tab control. The buttons are programmatically designed to make the corresponding panel visible. Sample aspx.vb code:
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
2630
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" runat="server" EnablePartialRendering="true"/> <atlas:UpdatePanel runat="server" ID="UpdatePanel1" Mode="Conditional"> <ContentTemplate> After inserting this code, my calendar stopped working in that if I clicked on a date, nothing would...
7
2365
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 version of the application. The javascript version worked nicely -- you click on a calendar.gif in an anchor next to a textbox. The calender would pop up in a new window, you select the date, the calendar window would close and the textbox would be...
6
1957
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 combo box on the form and have bound the control to the Date Reported field. I have placed the calendar control on the form and set the Visible property to no. The following code has bee added to the Mouse Down Event of the Date
3
2723
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 assist with this. Thanks in advance. 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.
0
8421
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8325
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8742
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8518
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6177
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.