I am using WebCalenderView control.It gives Calender view for a month.Lets say for january i want to show background color red for 1st ,7th,21st,25th January.So How can i set background color for some days in a month and other days will have default background color.Pls help !!
rajrkodeep,
You will have to do this on the client side in javascript. You will need to hook up the WebCalendarView's RenderDay event, and in that event check to see what day it is, and if it is a day you want to color, change the background. The code will look something like the following:
function WebCalendarView1_RenderDay(oCalendarView, oEvent, day){ if (day.day == 1 || day.day == 25) { day.element.style.background = "red"; }}
Hope this helps,
~Kim~