Questions tagged [routeconfig]

86 questions
0
votes
1 answer

How to link Url.Action to a specific controller method

I have a menu with a number of selectable options within the menu, but for some reason if I select any of these items I am always redirected to the controller method of the last action which is the logout page. My code for the list is the…
Maeglin77
  • 173
  • 1
  • 14
0
votes
1 answer

Asp.net MVC 5 Routing

I'm new in ASP.net MVC My Route Config is here routes.MapRoute( name: "ItineraryRoute", url: "{country}/Itinerary/tours/{TourId}", defaults: new { controller = "TourDetails", action = "Index" } ); …
neda Derakhshesh
  • 1,103
  • 2
  • 20
  • 43
0
votes
2 answers

RouteConfig in router-depracted in Angular 2 is prepending a few extra '%E2%80%9C' double left quotes to the redirect route

I have an angular 2 app (built with Angular RC1) that is using the class RouteConfig from the router-deprecated module of RC1. import {Component} from "@angular/core"; import {RouteConfig, RouterOutlet} from "@angular/router-deprecated"; import…
freddy mercury
  • 608
  • 1
  • 7
  • 19
0
votes
1 answer

Angular2 How to go back in a RouteConfig

I made a simple test to practice the RouteConfig feature and I don't know how to go back to the main component from the children component. My plunker is: plnkr.co/edit/25DCfUADQZJb2XMjb0hW?p=preview Thanks in advance!
Thierry Henry
  • 33
  • 1
  • 7
0
votes
0 answers

angularJS routing configuration with different modules

I am working on SPA using AngularJS, the app divided into modules, and each modules has its own route configuration, my question here what is the order that angular use to build its route table? will it mix all routes from different modules into…
0
votes
2 answers

How to redirect from a url in MVC5

I have a url which says www.test.com/12345. When the user hit this url, he should be redirected to respective action method where "12345" accepts as its parameter. I have a slight idea that can be used with RouteConfig but still no clear…
TechNo
  • 615
  • 2
  • 7
  • 24
-1
votes
2 answers

Change url in Route Config in Mvc

I want to change the address of a function (via RegisterRoutes). I defined two routes.MapRoute but not working any. I checked many examples and matched my code with them, but the problem still remains. The real address…
-1
votes
1 answer

Controller Action method not hit when entering the route value in browser URL and when using RedirectToAction?

I have an MVC5 Application, published on remote server, that has the HomeController with About ActionResult method, i have the RouteConfig.cs configured as follows: routes.MapRoute("Default", "{controller}/{action}", …
Yazan
  • 179
  • 2
  • 4
  • 10
-1
votes
1 answer

Ajax call unsuccessful in Asp.net

After debugging my application, I found that ajax call is unsuccessful. I have tried multiple solutions found on web but still I am unable to resolve this issue. One solution which I found is to set settings.AutoRedirectMode = RedirectMode.Off; …
-1
votes
1 answer

MVC4 Routing Subfolder Directory for Checkout

What do I need to do to map these URLs to my routes? example.com/checkout?o=1234 example.com/checkout/shipping?o=1234 example.com/checkout/payment?o=1234 example.com/checkout/review?o=1234 example.com/checkout/receipt?o=1234 In the RouteConfig, I…
-3
votes
1 answer

RouteConfig is not working

enter image description here While running the project in visual studio; I am getting the error as in the attached image. public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); …
Sibin
  • 1
  • 7
1 2 3 4 5
6