Thursday, March 29, 2012

opening times

i want to create a page in asp.net using the calendar mechanism indicating the different opening times at a theme parks. There are 4 possibilities: peak, off-peak, standard and closed.....each type should be given a colour. In the calendar, the background of each date should be dependant on what type the fall in eg. if June 26 is peak (and peak type is given colour red) then the bground of this date should be red, while on December 4th is closed (and closed is given the normal white) then the bground is left untouched...how would I do this...I no how to select a date on the calender and change the colour but thats it....

hope sum1 can help...really need this 2 work!!!

THANKSOverride theDayRender event of the calendar and change the color from there.
should i store the date and the status (off-peak, peak, standard) as a seperate table in the database? how do I program to find the date in the table and depending on the status, make the background the colour that paritcular colour??

that will mean the table will have 365 inputs (or maybe since a lot of the time it is closed, can i program it to say, check if date is in the table if not then leave the background white else... )

enyone that can help?

0 comments:

Post a Comment