Top "Asp.net-mvc-routing" questions

Questions about routing within ASP.

Set index.html as the default page

I have an empty ASP.NET application and I added an index.html file. I want to set the index.…

asp.net-mvc asp.net-mvc-routing
URLs with slash in parameter?

Question: I am creating a wiki software, basically a clone of wikipedia/mediawiki, but in ASP.NET MVC (the MVC …

asp.net-mvc asp.net-mvc-routing
Using Url.RouteUrl() with Route Names in an Area

As a side note, I understand the whole ambiguous controller names problem and have used namespacing to get my routes …

asp.net-mvc-4 asp.net-mvc-routing url-routing
How to get a session value in cshtml file in ASP.Net MVC4

Pls help me out, the value is storing in the session for the particular user ,When i am retrieving the …

asp.net-mvc-4 asp.net-mvc-routing asp.net-session
Force all Areas to use same Layout

I have the following project structure: /Views/Shared/_Layout; /Areas/Area1/Views/ControllerName/Index; ... /Areas/AreaN/Views/ControllerName/Index. Is …

asp.net-mvc razor asp.net-mvc-routing asp.net-mvc-areas
ASP.NET MVC 5 culture in route and url

I've translated my mvc website, which is working great. If I select another language (Dutch or English) the content gets …

c# .net asp.net-mvc asp.net-mvc-5 asp.net-mvc-routing
ASP.NET MVC - MapRoute versus routes.Add (and 404s)

I'm just getting started with ASP.NET MVC. What is the difference between MapRoute and routes.Add ? Should I just …

.net asp.net-mvc url-routing asp.net-mvc-routing
MVC 3 Can't pass string as a View's model?

I have a strange problem with my model passed to the View Controller [Authorize] public ActionResult Sth() { return View("~/Views/…

asp.net-mvc asp.net-mvc-3 asp.net-mvc-routing
asp.net mvc routing: how to use default action but non-default parameter?

I'm rewriting the question, as the answers so far show me that I have not defined it good enough. I'll …

asp.net-mvc routing url-routing asp.net-mvc-routing
Routing in Asp.net Mvc 4 and Web Api

Can I use the following two route rule together ? config.Routes.MapHttpRoute( name: "ActionApi", routeTemplate: "api/{controller}/{action}/{id}", defaults: …

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