473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

CSS and Calendar Control

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
6. Calendar Size and each field size

I want to change this items to all the areas, such as Title, Day, Weekend,
etc.

Can you help me out?

Thank You,
Miguel
Nov 18 '05 #1
5 4576
Have you even looked at the various properties that a Calendar control has?
I am guessing no because everything you want to do can be set by simply
setting the various properties.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:uy*************@TK2MSFTNGP11.phx.gbl...
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
6. Calendar Size and each field size

I want to change this items to all the areas, such as Title, Day, Weekend,
etc.

Can you help me out?

Thank You,
Miguel

Nov 18 '05 #2
Yes sure i looked and i allready did it. But i wanted to create CSS styles
so i could use, reuse it and change it in an easy way.
That's what i am looking for. To format the way i just did but using css

Thanks,
Miguel

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
Have you even looked at the various properties that a Calendar control has? I am guessing no because everything you want to do can be set by simply
setting the various properties.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:uy*************@TK2MSFTNGP11.phx.gbl...
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
6. Calendar Size and each field size

I want to change this items to all the areas, such as Title, Day, Weekend, etc.

Can you help me out?

Thank You,
Miguel


Nov 18 '05 #3
Miguel, I don't think you are following me here....

You don't use CSS directly on a server control such as the calendar. You
use whatever properties it exposes such as "SelectedDateStyle". When the
control is rendered to the browser, those properties will be translated into
the appropriate CSS commands since all server controls render to the client
as HTML/JavaScript/CSS.

If you use the properties, there is no reason you wouldn't still be able to
use, reuse and change it easily.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Yes sure i looked and i allready did it. But i wanted to create CSS styles
so i could use, reuse it and change it in an easy way.
That's what i am looking for. To format the way i just did but using css

Thanks,
Miguel

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
Have you even looked at the various properties that a Calendar control

has?
I am guessing no because everything you want to do can be set by simply
setting the various properties.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:uy*************@TK2MSFTNGP11.phx.gbl...
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
6. Calendar Size and each field size

I want to change this items to all the areas, such as Title, Day,

Weekend, etc.

Can you help me out?

Thank You,
Miguel



Nov 18 '05 #4
Actually, Im afraid you are misunderstanding the issue.

The control may have nice little properties in it's own proprietary
method of setting styles, but most of the world currently uses style
sheets. Why reinvent what already exists? I think it is a fair
question to ask how to use a style sheet to render anything in the
..NET suite of components. Some of the items have this as a feature,
but others do not. It really should be available everywhere. Just
include a CSSStyle property on anything that the programmer has
control over (everything???)

On Sun, 7 Mar 2004 18:41:20 -0500, "Scott M." <s-***@BADSPAMsnet.net>
wrote:
Miguel, I don't think you are following me here....

You don't use CSS directly on a server control such as the calendar. You
use whatever properties it exposes such as "SelectedDateStyle". When the
control is rendered to the browser, those properties will be translated into
the appropriate CSS commands since all server controls render to the client
as HTML/JavaScript/CSS.

If you use the properties, there is no reason you wouldn't still be able to
use, reuse and change it easily.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Yes sure i looked and i allready did it. But i wanted to create CSS styles
so i could use, reuse it and change it in an easy way.
That's what i am looking for. To format the way i just did but using css

Thanks,
Miguel

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
> Have you even looked at the various properties that a Calendar control

has?
> I am guessing no because everything you want to do can be set by simply
> setting the various properties.
>
>
> "Miguel Dias Moura" <in************@27lamps.com> wrote in message
> news:uy*************@TK2MSFTNGP11.phx.gbl...
> > Hello,
> >
> > i am trying to create a .css file with several styles and apply themto > 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
> > 6. Calendar Size and each field size
> >
> > I want to change this items to all the areas, such as Title, Day,

Weekend,
> > etc.
> >
> > Can you help me out?
> >
> > Thank You,
> > Miguel
> >
> >
>
>



Nov 18 '05 #5
Hi Miguel,

I can support the claim that sometimes the styles do not apply correctly on
the calendar control. I encountered the same problem with a project here.
The month name sometimes would not render with the class I had applied. It
is a strange problem and I did not find a solution...

Éric.

"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:OK**************@TK2MSFTNGP12.phx.gbl...
Hi, i did see the several CSSClass properties applyied to the various
aspects of its appearance but somehow when i used it, some of the styles
didn't change...that's why i started looking for options....maybe i did
something wrong.

Another problem i am having is to populate the calendar with events taken
from an Access Database.
I found a quite short example in
http://www.macromedia.com/devnet/mx/...et_calendar_05. html

However, this example is in C# and i am having trouble in changing it to VB which is how my web page is done.

Did you ever did something like this?

Thanks,
Miguel

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
A calendar control is rendered as an HTML table with JavaScript attached

via
onClick event handlers.

To attach an external .css file, simply do what you've always done for
styling tables. However, even if you don't set any properties in the
control, it does come down with inline style applied to it, so you may

have
trouble overriding those with ones in the .css file.

Did you look at the fact that the control does have several "CSSClass"
properties for various aspects of its appearance. You could make a CSS
class and attach it to the various properties there.
"Miguel Dias Moura" <in************@27lamps.com> wrote in message
news:Oa**************@TK2MSFTNGP09.phx.gbl...
I will try to explain better.

In my web sites i set all text style, background, and so one using style sheets witch i save in a .css file or in a database.

What i would like to know if i could set a style like this:

Calendar {
dayFont:......
dayColor:....
dayBackgroundColor:...
weekendColor:....
...
}

Then i would apply this .css to the control.
This way, i could apply this .css to all the calendars i would create or even change the .css file to change the look of the calendar control

without
having to change the calendar control tag.

Are my ideas wrong?

Thanks,
Miguel

"Dan Brussee" <db******@nc.rr.com> wrote in message
news:gm********************************@4ax.com...
> Actually, Im afraid you are misunderstanding the issue.
>
> The control may have nice little properties in it's own proprietary
> method of setting styles, but most of the world currently uses style
> sheets. Why reinvent what already exists? I think it is a fair
> question to ask how to use a style sheet to render anything in the
> .NET suite of components. Some of the items have this as a feature,
> but others do not. It really should be available everywhere. Just
> include a CSSStyle property on anything that the programmer has
> control over (everything???)
>
>
>
> On Sun, 7 Mar 2004 18:41:20 -0500, "Scott M." <s-***@BADSPAMsnet.net> > wrote:
>
> >Miguel, I don't think you are following me here....
> >
> >You don't use CSS directly on a server control such as the calendar.
You
> >use whatever properties it exposes such as "SelectedDateStyle".
When
the
> >control is rendered to the browser, those properties will be

translated into
> >the appropriate CSS commands since all server controls render to
the client
> >as HTML/JavaScript/CSS.
> >
> >If you use the properties, there is no reason you wouldn't still be

able
to
> >use, reuse and change it easily.
> >
> >
> >"Miguel Dias Moura" <in************@27lamps.com> wrote in message
> >news:%2****************@tk2msftngp13.phx.gbl...
> >> Yes sure i looked and i allready did it. But i wanted to create CSS styles
> >> so i could use, reuse it and change it in an easy way.
> >> That's what i am looking for. To format the way i just did but

using css
> >>
> >> Thanks,
> >> Miguel
> >>
> >> "Scott M." <s-***@BADSPAMsnet.net> wrote in message
> >> news:u1**************@tk2msftngp13.phx.gbl...
> >> > Have you even looked at the various properties that a Calendar
control
> >> has?
> >> > I am guessing no because everything you want to do can be set by simply
> >> > setting the various properties.
> >> >
> >> >
> >> > "Miguel Dias Moura" <in************@27lamps.com> wrote in message > >> > news:uy*************@TK2MSFTNGP11.phx.gbl...
> >> > > 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
> >> > > 6. Calendar Size and each field size
> >> > >
> >> > > I want to change this items to all the areas, such as Title, Day, > >> Weekend,
> >> > > etc.
> >> > >
> >> > > Can you help me out?
> >> > >
> >> > > Thank You,
> >> > > Miguel
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
> >
>



Nov 18 '05 #6

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

Similar topics

0
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...
6
by: Jeff S | last post by:
I would like recommendations for implementing a calendar in an ASP.NET web site. My plan is to store date and event information (e.g,, "Spring Sale") in a database, and when the page is requested,...
1
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
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
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...
0
by: Robert Ladd | last post by:
Hi, I'm trying to disable the asp.net calendar control from a javascript function, but it doesn't disable the doPostBack. To simplify the situation, assume a page with 4 controls. A...
3
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
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
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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...
0
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
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...

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.