ASP.NET MVC Calendar component
Well, this component is written for ASP.NET MVC Preview and with my modifications it also works for MVC 1.0 too. I was not able to get contact with author so I published files here. I changed no names of namespaces and classes, so it is easy to merge my changes to current code if author wishes it.
Image on the right side shows how the calendar looks like with default settings. Calendar has its own CSS file so it is very easy to change the look of it. Currently the calendar needs some modifications and I’m trying my modifications there as soon as possible.
You can use calendar on your views like this:
var dates = new DateTime;
dates = new DateTime(2009, 7, 12);
dates = new DateTime(2009, 7, 29);
Seems convenient, at least to me. If I make any significant modifications I will write new posting here that describes new features.
Visual Studio 2008 Project with binaries
4 thoughts on “ASP.NET MVC Calendar component”
Just out of curiousity did you give any thought to using the Calendar control from jquery ui?
I thought about jQuery plugins but they doesn’t fit to my context easily. I needed just calendar that shows links with dates that I ask with LINQ query. Users can click on dates and see what information is related to selected date.
I know that there are also pretty cool plugins for jQuery.
Where can I find the CSS file to change the look of tour modified calendar? I implemented it in a existing MVC-project but the only thing I got was a calendar without any visible borders etc…
Thanks for submitting this – I do have a question though. The next and previous months are not navigating correctly. Thanks for your help.