Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Can the ASP .Net 2.0 Calendar control select multiple dates with multiple colors?

Posted on 2008-11-05
4
Medium Priority
?
841 Views
Last Modified: 2013-12-17
I know I can select multiple dates on the Calendar control. However, can each of the selections have different colors? For example: birthdays = blue, wedding dates = green, company events = pink, family picnics = yellow and so on.
0
Comment
Question by:gtrapp
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
AswinKrishnan earned 750 total points
ID: 22893388
yes , you can specify different colours for different days

you can specify a function like  ondayrender="Function" in calendar control

for more info check the links :
http://odetocode.com/Articles/223.aspx
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.calendar.dayrender(VS.80).aspx
0
 

Author Comment

by:gtrapp
ID: 22900129
Thanks.

I have some of the colors on the calendar working. When I select a date on the calendar, the other colored selection go away. Is this because of post backs?
0
 
LVL 3

Assisted Solution

by:AswinKrishnan
AswinKrishnan earned 750 total points
ID: 22902769
it can be because of postbacks or it can be due to any other reason, may be, if you can post your code we can find the reason.

0
 

Author Closing Comment

by:gtrapp
ID: 31513728
Thank you.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month20 days, 15 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question