Top "Asp.net-mvc-routing" questions

Questions about routing within ASP.

ASP.NET MVC - how to get a full path to an action

Inside of a View can I get a full route information to an action? If I have an action called …

asp.net-mvc asp.net-mvc-routing
ASP.NET MVC Url.Action and route name value

I am using asp.net mvc 2 and create localization based on routes. my route looks like: {culture}/{controller}/{action} I …

c# asp.net-mvc asp.net-mvc-2 asp.net-mvc-routing
How can I redirect my action to the root of the web site?

I have the following code in my controller to redirect my user after he has logged out: public ActionResult Logout() { …

asp.net-mvc asp.net-mvc-3 asp.net-mvc-routing
ASP.NET MVC switch language, how to implement?

I have started converting my simple website to ASP.NET MVC, just to mess around with it. I have a …

asp.net-mvc asp.net-mvc-routing
ASP.NET MVC Default URL View

I'm trying to set the Default URL of my MVC application to a view within an area of my application. …

asp.net asp.net-mvc web-config asp.net-mvc-routing url-routing
ASP.NET CORE, Web API: No route matches the supplied values

PLEASE NOTE: This question was asked in 2016. The original answer to this problem was to update the microsoft api versiong …

c# asp.net-mvc-routing .net-core asp.net-core-webapi api-versioning
URL.Action includes id when constructing URL

I'm using ASP.Net MVC. Here's my code snippets from a controller named Course: public ActionResult List(int id) { var …

asp.net-mvc-3 asp.net-mvc-routing url.action
Return either xml or json from MVC web api based on request

Given the following webapiconfig; config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); and this …

c# asp.net-mvc asp.net-web-api asp.net-mvc-routing wcf-web-api
Infinite URL Parameters for ASP.NET MVC Route

I need an implementation where I can get infinite parameters on my ASP.NET Controller. It will be better if …

asp.net asp.net-mvc asp.net-mvc-3 asp.net-mvc-routing
Generating Route Url to MVC controller action from WebAPI

I'm used to generating route URLs to other controller actions within an MVC controller action using something similar to below: …

asp.net-mvc asp.net-mvc-4 asp.net-web-api asp.net-mvc-routing urlhelper