Think In Geek

In geek we trust

December, 2010

Routing a hiearchical path in ASP.NET MVC

If you wonder how to make a GitHub (and other websites) like routes to access to hierarchical paths or files, here’s the way to do it in ASP.NET MVC. GitHub is a GIT hosting service, and allows you to browse the repositories. When doing so, it uses a path as a routing parameter, as seen […]


Get the number of days in a month in .NET

If you’ve ever wondered how to get the number of days for a given month in .NET, the solution is pretty easy: System.DateTime.DaysInMonth(int year, int month)System.DateTime.DaysInMonth(int year, int month) Hope it helps!