Click here to Skip to main content
15,923,273 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello All,

I am new in Web Development. I am developing a web application with MVC C#.
I want to build a View which contains all year months in calendar view and mark some days with specific color based on dates saved on a database table.

Could you please how I draw this calendar view on my view and mark some days on it with different color if this day's date is saved on the database table.

Below is a sample of what I want.

---------------------- ---------------------- ----------------------
--------January------- -------February------- ---------March--------
---------------------- ---------------------- ----------------------
|S |M |T |W | T|F |S | |S |M |T |W | T|F |S | |S |M |T |W | T|F |S |
---------------------- ---------------------- ----------------------
|01|02|03|04|05|06|07| | | | |01|02|03|04| | | | |01|02|03|04|
|08|09|10|11|12|13|14| |05|06|07|08|09|10|11| |05|06|07|08|09|10|11|
|15|16|17|18|19|20|21| |12|13|14|15|16|17|18| |12|13|14|15|16|17|18|
|22|23|24|25|26|27|28| |19|20|21|22|23|24|25| |19|20|21|22|23|24|25|
|29|30|31| | | | | |26|27|28| | | | | |26|27|28|29|30|31| |
---------------------- ---------------------- ----------------------
Posted
Updated 3-Nov-15 4:24am

Umm, I'd rather use the Kendo UI Scheduler[^]. And it supports customization ;)

Or you can get a help from CodeProject articles:
ASP.NET MVC3: Create a custom calendar/datepicker[^]
AJAX Event Calendar (Scheduler) for ASP.NET MVC in 80 Lines of Code[^]

-KR
 
Share this answer
 
v2
Comments
Richard Deeming 3-Nov-15 10:53am    
That's a commercial component. Links to commercial components, particularly when not requested by the OP, are usually considered spam.
Krunal Rohit 3-Nov-15 11:16am    
Could be.
But it's an alternative solution.

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900