Questions tagged as 'asp.net-mvc-routing'

1
answer

Get URL value in a DropDownList

In my application I have a DropDownList that filters the search data. When filtering, it retrieves the value of QueryString and leaves the value saved in DropDownList itself (so that when the page changes, the filter option...
asked by 08.06.2015 / 21:01
1
answer

Configure routes using ASP.NET MVC 5 areas

I'm trying to set up a route using area as follows: No RouteConfig.cs public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes...
asked by 01.06.2015 / 01:01
1
answer

C # MVC RouteBase routing too many redirects

I have a dynamic all system where I get all my paths , controllers , views and areas > from BD . My problem now is when I try to access a page it returns me too many redirects response . What happens in this area is: User...
asked by 26.11.2015 / 14:00
1
answer

Subdomain 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 controller; 4 - I created the view...
asked by 13.02.2015 / 11:54
0
answers

Creating routes per user .NetCore [closed]

I need to create a sales site and each user will have their own "site" would be something like myystem.com.br/username What is the best way to do this using .NetCore?     
asked by 02.07.2018 / 22:34
2
answers

Removing part of the link in the ASP.NET MVC routes

My RouteConfig is configured like this: routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{empresa}/{controller}/{action}/{id}", defaults: new { empresa = "", controller = "Login", action =...
asked by 07.03.2016 / 13:41
1
answer

Remove parameter name URL MVC

I have the following URL    / vlog / usertimeline /? slug = tests for the Vlog controller, action usertimeline and slug parameter. How do I set the route to be    / vlog / usertimeline / tests I'm using MVC 4. I have the followi...
asked by 22.03.2018 / 16:34
0
answers

Pass parameter to new MVC controller

I need to pass parameter "01" from the link to another controller. namespace Intranet.Presentation.Areas.GestaoDeServicos.Controllers { public class ServicoController : Controller { public ActionResult Cadastro(int id)...
asked by 14.09.2018 / 19:38
0
answers

Get 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 attribute that inherits from: Auth...
asked by 31.07.2017 / 20:40
1
answer

Redirecting Excess ASP NET MVC

I have a problem with the project, when I access the default route, I get the following error. Esta página não está funcionando Redirecionamento em excesso por localhost Tente limpar os cookies. ERR_TOO_MANY_REDIRECTS The error happens whe...
asked by 11.05.2017 / 19:42