string actionName = this.ControllerContext.RouteData.Values["action"].ToString();
string controllerName = this.ControllerContext.RouteData.Values["controller"].ToString();
More Related Contents:
- RedirectToAction with parameter
- How to call another controller Action From a controller in Mvc
- Why does the property I want to mock need to be virtual?
- How do you handle multiple submit buttons in ASP.NET MVC Framework?
- ASP.NET MVC – Attaching an entity of type ‘MODELNAME’ failed because another entity of the same type already has the same primary key value
- ASP.NET MVC $.post call returning string…need help with format for jqGrid
- How to get the current user in ASP.NET MVC
- Weird Error Upgrading ASP.NET MVC from 4 to 5
- Make sure that the controller has a parameterless public constructor error
- Reset the value of textarea after form submission
- ASP.NET MVC ambiguous action methods
- NUnit vs. Visual Studio 2008’s test projects for unit testing [closed]
- MVC/JQuery validation does not accept comma as decimal separator
- Does asp.net MVC have Application variables?
- How to group by on 2 child entities and get total of both this child entities?
- Does FileStreamResult close Stream?
- Display custom error page when file upload exceeds allowed size in ASP.NET MVC
- pass two models to view [duplicate]
- Is Deferred Execution in Asp.net MVC View a very bad thing?
- TempData null in asp.net core
- Update multiple records at once in asp.net mvc
- Set database timeout in Entity Framework
- Multiple Authorization attributes on method
- Why is it that “No HTTP resource was found that matches the request URI” here?
- Using Razor without MVC [duplicate]
- Where can I find the System.Linq.Dynamic dll?
- How to create a instance of UserCredential if I already have the value of Access Token?
- .NET Managing Layers Relationships
- How to know if an HTTP request header value exists
- There is no ViewData item of type ‘IEnumerable’ that has the key country