Questions tagged [maproute]

148 questions
0
votes
1 answer

MapPageRoute fails to redirect to specified aspx page

I have the following in my RouteConfig.cs file public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", …
elspoono
  • 3
  • 3
0
votes
2 answers

How do I set up a universal controller in ASP.NET MVC?

I know it's not perhaps in the true spirit of MVC, but I just want to have a single global controller that always gets called no matter what the url looks like. For example, it could…
devios1
  • 36,899
  • 45
  • 162
  • 260
0
votes
2 answers

asp.net MVC 3 RegisterArea with multiple optional id's not working

I am trying to capture multiple optional parameters in an ASP.NET web application. When I define the MapRoute in RegisterArea(), it is breaking the Html.ActionLink() methods. The following code works: Public Overrides Sub RegisterArea(ByVal…
0
votes
2 answers

ASP.NET MVC Routes Rest Standards URL Parameters

Having a bit of a nightmare, hopefully I'm just being stupid. I have the following controller actions: Function News() As ActionResult End Function Function News(ByVal id As Integer) As ActionResult End Function I want it…
0
votes
1 answer

MVC Route URL to Area controller

Hi I want to route to my AdminLoginController (inside Admin area) with this url siteurl/admin. My code in RegisterArea(AreaRegistrationContext context) function: context.MapRoute( "Admin_1", "Admin", …
Duc Dang
  • 117
  • 2
  • 7
0
votes
0 answers

UWP Application : Map Route API (MapRouteFinder.GetDrivingRouteAsync) does not respond and even no way to refresh or cancel a request

I am trying to draw a route on Map Control in UWP application for desktops for specific locations: Start: { Latitude = 33.8917742, Longitude = -87.5261236 } End: { Latitude = 32.318231, Longitude = -86.902298 } Caller…
0
votes
1 answer

Calculate the shortest route using the fleet telematic API

I'm using the fleet telematic API to calculate a route for specific "Bus-profiles". So I'm using the param speedFcCat to specify the speed limits for the bus. The problem is, I can only become the fastest route. I tried to combine driver_cost and…
Marouen Mhiri
  • 1,640
  • 1
  • 14
  • 20
0
votes
1 answer

ASP.NET Core 2 MVC

I'm using asp-route-id to pass the id value to the controller which will return me a view with information about "blog" with same id. Everything works but i don't like how "Url" looks! How can I change "Url" like this…
Futuricon
  • 1
  • 1
0
votes
2 answers

is there a way to Change the Current url from Map Route to another Map Route?

i have two Map Route : 1- "{controller=Home}/{action=Index}/{id?}"); 2-"{culture=en}/{controller=Home}/{action=Index}/{id?}" all i want is there is a way to Convert link : DomainName.com/Login/Register (Map Route…
0
votes
1 answer

map routing not using default action

when I enter - http://localhost:60559/movies The browser is redirecting to movies/index Why? I have made the default action edit. All the names are just demo. routes.MapRoute( "searchByName", "Movies/edit", new {Controller = "Movies", action…
0
votes
1 answer

MapRoute index.asp not routing to controller

I have the following MapRoute which works and routes to the controller 'Hotel' routes.MapRoute("Hotel", "en/hotels/london/victoria/my_hotel_name/", new { controller = "Hotel", action = "Index" }, namespaces: new[] {…
neildt
  • 5,101
  • 10
  • 56
  • 107
0
votes
1 answer

Google Maps: Drawing routes origin and destination are connected

I am drawing route on google map using waypoints. Everything looks good except my origin and destination is also connected. I am sure my origin and destination is not same. Here is the url generated after I generate directions url from list of…
Kanak Sony
  • 1,570
  • 1
  • 21
  • 37
0
votes
1 answer

ASP.Net MVC: Map route according to parameter value

I'm trying to create a wizard-like workflow on a site, and I have a model for each one of the steps. I have the following action methods: public ActionResult Create(); public ActionResult Create01(Model01 m); public ActionResult Create02(Model02…
willvv
  • 8,439
  • 16
  • 66
  • 101
0
votes
1 answer

MVC MapRoute not routing with required parameter

I'm wanting the URL to my MVC application to be like: www.site.com/Bob Which would in turn 'redirect' to Home/Details/Bob. I've set up the following MapRoute: routes.MapRoute( _ Nothing, _ "{personName}", _ New With {.controller = "Home",…
0
votes
1 answer

Map URL to empty route in ASP.NET MVC 2 from URL. URL displays blank page

If URL is http://localhost:54027/test1/test2/home It shows home page If URL is http://localhost:54027/test1/test2/ It shows BLANK page Following are the routes we have used routes.MapRoute( "HomePage", "Test2", …
Sreedhar K