general ideas for using a calendar control to set availability

I am after some general advice.

I have a calendar control and wanted a user to be able to click on cells of the month and change the background colour of the cell to set different types of availability for that day, so on first click would change to red to show booked etc, then when they hit save i would do a check on the background colour and save the status to the database.

it seems there is no onclick event for a day of a calendar so am after alternate ways to allow the user to set availability status for a particular day.

does anyone have any ideas, is there a "normal" way of doing this?
scm0smlAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RusselRCommented:
An alternative to your approach would be to use a calendar in conjunction with a dropdownlist of the available statuses.
On the calendar you can use the ondaycreated event to override the background colour to illustrate availability. Use onselecteddatechanged to select the date and choose the correct status from the dropdown. The dropdown selectedindexchanged event be used to alter the availability data and cause the calendar to redraw.

Beyond this I think you are in to the realms of custom controls in every date on the calendar... e.g. changing every date in the calendar to a button which itself has an onclick which toggles availability for its date.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
scm0smlAuthor Commented:
i have got my date ranges selected now so will have a dropdown to allow the user to select the status for the selected date range then set the background colour of the cell based on the value of the dropdown.
0
scm0smlAuthor Commented:
we are getting there :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.