Try this:
<%= ViewContext.RouteData.Values["Controller"] %>
<%= ViewContext.RouteData.Values["Action"] %>
More Related Contents:
- How to cache data in a MVC application
- How to get all Errors from ASP.Net MVC modelState?
- ASP.NET MVC HandleError
- MaxJsonLength exception in ASP.NET MVC during JavaScriptSerializer
- Allow User to input HTML in ASP.NET MVC – ValidateInput or AllowHtml
- Format datetime in asp.net mvc 4
- renderpartial with null model gets passed the wrong type
- ASP.NET MVC, Url Routing: Maximum Path (URL) Length
- Where to place AutoMapper.CreateMaps?
- ASP.NET MVC example of editing multiple child records
- Redirect to external URI from ASP.NET MVC controller
- ASP.NET MVC: Controlling serialization of property names with JsonResult
- Can Razor views be compiled?
- How to use knockout.js with ASP.NET MVC ViewModels?
- Unobtrusive validation not working on dynamically-added partial view
- Create and Run MVC 5 Project in VS 2012
- MVC 3 Layout Page, Razor Template, and DropdownList
- Asp.Net MVC how to get view to generate PDF
- What is routes.IgnoreRoute(“{resource}.axd/{*pathInfo}”)
- Writing to Output Stream from Action
- error with decimal in mvc3 – the value is not valid for field
- Use Entity framework I want to include only first children objects and not child of child(sub of sub)
- jqGrid dataUrl dropdown list not refreshing
- Where to put view-specific javascript files in an ASP.NET MVC application?
- What does the Web.Config file do in the views folder of a MVC project
- How can I override the @Html.LabelFor template?
- How to use a DI / IoC container with the model binder in ASP.NET MVC 2+?
- Intermittent asp.net mvc exception: “A public action method ABC could not be found on controller XYZ.”
- Nested resources in ASP.net MVC 4 WebApi
- Inject a dependency into a custom model binder and using InRequestScope using Ninject