Top "Asp.net-mvc-routing" questions

Questions about routing within ASP.

Route Prefix VS Controller Name ( Web api )

I was wondering that if we use RoutePrefix attribute in our web api controller with a different name from controller's …

c# asp.net-mvc asp.net-web-api asp.net-mvc-routing attributerouting
Html.Action() results in "No route in the route table matches the supplied values"

This issue has been discussed many times, but I haven't found a resolution for my particular case. In one of …

asp.net-mvc asp.net-mvc-routing umbraco6
ASP.NET MVC Controller Unit Testing - Problem with UrlHelper Extension

Trying to do some controller unit-testing in my ASP.NET MVC 3 web application. My test goes like this: [TestMethod] public …

c# asp.net-mvc unit-testing moq asp.net-mvc-routing
MVC Attribute Routing - Default Controller Index with GET and POST

We have an MVC 5.1 project and are using attribute routing. Everything is working fine except the default page which has …

c# asp.net-mvc-5 asp.net-mvc-routing asp.net-mvc-5.1 attributerouting
Make ASP.NET MVC Route Id parameter required

I have this route: routes.MapRoute( "PlaceDetails", "{controller}/{action}/{id}", new { controller = "Place", action = "Details", id = UrlParameter.Optional } ); This routes …

c# asp.net-mvc asp.net-mvc-routing asp.net-routing
How to make Login page as a default route in ASP .NET Core 2.1?

I am beginner in ASP .NET Core 2.1 and working on project which is using ASP .NET Core 2.1 with individual authentication. …

c# asp.net-identity asp.net-mvc-routing razor-pages asp.net-core-2.1
How to make IRouteConstraint filter route

I wrote a custom route constraint, but its filter just doesn't get recognized. Does anyone have an example working use …

asp.net asp.net-mvc routing asp.net-mvc-routing
Multiple routes assigned to one method, how to determine which route was called?

I am working on a small ASP.NET MVC project at the moment. The project was released a few month …

c# asp.net-mvc asp.net-mvc-routing attributerouting
MVC Attribute routing with Url.Action not resolving route

I cannot get @Url.Action to resolve to the url I am expecting based on the attribute route I have …

asp.net-mvc routes url-routing asp.net-mvc-routing attributerouting
Create SiteMap in ASP.NET MVC

I Want Create SiteMap For ASP.NET MVC Site. I Write This Code [XmlRoot("urlset", Namespace = "http://www.sitemaps.org/…

asp.net-mvc url-routing asp.net-mvc-routing sitemap mvcsitemapprovider