From MVC2 onwards you can use ViewContext.RouteData.DataTokens["area"]
More Related Contents:
- Is HTML.Partial case sensitive? [closed]
- Post an HTML Table to ADO.NET DataTable
- ASP.Net MVC: How to display a byte array image from model
- ASP.NET MVC Razor pass model to layout
- MVC which submit button has been pressed
- ASP.NET MVC Razor: How to render a Razor Partial View’s HTML inside the controller action
- Determine if uploaded file is image (any format) on MVC
- Visual Studio 2015 not syntax highlighting razor nor Intellisense
- I want to understand the lambda expression in @Html.DisplayFor(modelItem => item.FirstName)
- Converting ASP.NET MVC Razor @helper function into a method of a helper class
- Visual Studio 2015 Broken Razor Intellisense
- Rendering Partial Views using ajax
- ASP.NET MVC Razor render without encoding
- ‘object’ does not contain a definition for ‘X’
- Client Id for Property (ASP.Net MVC)
- MVC 5 BeginCollectionItem with Partial CRUD
- How to get current page URL in MVC 3
- How to declare a local variable in Razor?
- MVC 3: How to render a view without its layout page when loaded via ajax?
- The name ‘ViewBag’ does not exist in the current context – Visual Studio 2015
- validate a dropdownlist in asp.net mvc
- How to retain spaces in DropDownList – ASP.net MVC Razor views
- razor view with anonymous type model class. It is possible?
- How to edit multiple models in a single Razor View
- Conditional html attribute with Html Helper
- How to represent a month of checkboxes in an MVC model
- Razor/CSHTML – Any Benefit over what we have? [closed]
- Complex object and model binder ASP.NET MVC
- Multiple checkboxes in razor (using foreach)
- String interpolation in a Razor view?