Get Current Area Name in View or Controller

From MVC2 onwards you can use ViewContext.RouteData.DataTokens["area"]

Leave a Comment