Top "Asp.net-mvc-routing" questions

Questions about routing within ASP.

ASP.NET Core change AccessDenied route

I'm having some trouble with routing AccessDenied, probably Login/Logout path as well. The project is a stripped default one …

asp.net asp.net-core asp.net-mvc-routing asp.net-identity-3
Difference between Url.RouteUrl() & Url.Action() in MVC3

I am in the process of generating a URL dynamically in my cshtml page. What is the difference between Url.…

asp.net-mvc asp.net-mvc-3 asp.net-mvc-routing
ASP.Net MVC RouteData and arrays

If I have an Action like this: public ActionResult DoStuff(List<string> stuff) { ... ViewData["stuff"] = stuff; ... return View(); } …

c# asp.net-mvc arrays list asp.net-mvc-routing
How to make routelink return the correct URL?

here is the procedure to duplicate the issue. start new mvc 4 project. add the following lines to the RegisterRoutes() method …

asp.net-mvc asp.net-mvc-routing routelink
Why CSS and JS files bypass Asp.Net MVC routes?

I received a prototype application built with Asp.Net MVC4. It is currently replacing the default controller factory with a …

c# asp.net asp.net-mvc asp.net-mvc-4 asp.net-mvc-routing
using mvc route constraints so a url can only be mapped to one of three possible params

Here is my route: routes.MapRoute(null, "myaccount/monitor/{category}", // Matches new { controller = "MyAccount", action = "Monitor", category = (string)null } ); I …

c# asp.net-mvc asp.net-mvc-3 model-view-controller asp.net-mvc-routing
ApiController returns 404 when ID contains period

I have an ApiController and I want to use email addresses as the ID parameter for requests: // GET api/employees/…

asp.net-mvc asp.net-web-api asp.net-mvc-routing
How do I set the default namespaces in MapHttpRoute?

With the standard MapRoute method a can pass a string collection representing the namespaces in which to search for my …

asp.net-mvc-routing asp.net-mvc-4 asp.net-web-api
Setting an alternate controller folder location in ASP.NET MVC

We can an MVC app that uses the default folder conventions for the HTML views, but we'd like to set …

asp.net-mvc asp.net-mvc-routing asp.net-mvc-controller
ActionExecutingContext - ActionParameters vs RouteData

Given the following code: public class MyActionFilter : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext filterContext) { var a = filterContext.ActionParameters["someKey"]; var …

.net asp.net-mvc asp.net-mvc-4 asp.net-mvc-routing action-filter