Most voted "asp.net-mvc-routing" questions
13 questions
Sort by count of
-
3
votes1
answer375
viewsTranslation of MVC routes
With the ASP.Net MVC 4 I am wanting to translate all my routes, currently some are like this: http://localhost/pt-br http://localhost/pt-br/sobre http://localhost/pt-br/usuario/cadastro I am adding…
-
2
votes1
answer1172
viewsConfigure routes using areas in ASP.NET MVC 5
I am trying to set a route using area as follows: At Routeconfig.Cs public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) {…
-
2
votes1
answer338
viewsGet URL value from a Dropdownlist
In my application I own a DropDownList that filters the search data. When filtering, it retrieves the value of the QueryString and save the value in the DropDownList (so that when changing page, the…
-
2
votes1
answer620
viewsC# MVC Routebase routing Too Many Redirects
I have an all dynamic system where I get all my paths, controllers, views and areas from the BD. My problem now is when I try to access a page it returns to me too many redirects response. What…
-
1
votes1
answer548
viewsSubdomain does not load styles and scripts
Good morning, 1- I created a new solution in Visual Studio 2012; 2- I created ASP.NET MVC 4 Web Application. I opted for a "BASIC" project, Framework 4.5 and the Razor engine; 3- I created the Home…
-
1
votes2
answers130
viewsRemoving part of the link on ASP.NET MVC routes
My Routeconfig is configured this way: routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{empresa}/{controller}/{action}/{id}", defaults: new { empresa = "",…
-
1
votes0
answers10
viewsHow to create user routes . Netcore
I need to create a sales site and each user will have their own "site" would be something like meusistema.com.br/username What is the best way to do this using . Netcore?
-
0
votes2
answers373
viewsProblems with ASP.Net MVC routes
I have a problem with routes in MVC. routes.MapRoute( name: "Default", url: "{controller}/{id}", defaults: new { controller = "Login", action = "Index", id = UrlParameter.Optional } ); This route,…
-
0
votes0
answers19
viewsGet route.name through Httpcontextbase
I have mapped routes in my application: context.MapRoute("Home.Index", "home/{action}/{parameter}", new { controller = "Home", action = "Index", parameter = UrlParameter.Optional }); I wrote an…
-
0
votes1
answer1226
viewsExcess redirection ASP NET MVC
I have a problem in the project, when accessing the default route, returns me the following error. Esta página não está funcionando Redirecionamento em excesso por localhost Tente limpar os cookies.…
-
0
votes1
answer247
viewsRemove MVC URL parameter name
I have the following URL /vlog/usertimeline/? Slug=tests for the Vlog controller, usertimeline action and Slug parameter. How should I set the route to stay /vlog/usertimeline/tests I’m using MVC 4.…
-
0
votes0
answers40
viewsPass parameter to new MVC controller
I need to pass parameter "01" of http://localhost:5934/Gestaodeservicos/Catalogo/Cadastro/01, to another controller. namespace Intranet.Presentation.Areas.GestaoDeServicos.Controllers { public class…
-
0
votes1
answer23
viewsAreas - How to make a directory appear before Controller/Action/ on the route?
Hello. I created a web project ASP.NET MVC Core in the Visual Studio 2019 and I created an area called Managerial. Inside it, in the Views folder I created a subfolder called Products and put some…