Questions tagged [maproute]
148 questions
0
votes
2 answers
Android HERE: How to draw part of route
I have calculated route for 10 waypoints. If i simply create new MapRoute it will draw full route from first to last waypoint. Is it possible to draw part of route, from first to second waypoint?
I use 3.4.0.165 HERE SDK version. I have found this…

Zufar Muhamadeev
- 3,085
- 5
- 23
- 51
0
votes
0 answers
ASP.NET MVC Rewrite Action
View following route:
context.MapRoute(
name: "General",
url: "general/{controller}/{action}/{id}",
defaults: new { controller = "general", action = "list", id = UrlParameter.Optional },
namespaces: new[] {…

Mivaweb
- 5,580
- 3
- 27
- 53
0
votes
2 answers
Change url asp.net mvc 5
routes.MapRoute(
name: "MyRoute",
url: "{Product}/{name}-{id}",
defaults: new { controller = "Home", action = "Product", name = UrlParameter.Optional , id = UrlParameter.Optional }
);
my routemap and i…
user7941016
0
votes
1 answer
Force HERE SDK route engine to use my custom route (GPS Trails)
I have a GPS trails that I recorded and I want to use that route in HERE turn-by-turn navigation. Is there any way I can load the GPS points and pass it to the route engine and used in TBT mode.
Any recommendation? Thank you in advance.

neilQ5
- 179
- 1
- 12
0
votes
2 answers
calling ajax server-side method with mappage route c#
Salam aleykum, i'm trying here to call an ajax server-side method using the mappage route but it always says: POST 404 (Not found)
here is the code c#:
[System.Web.Services.WebMethod]
public static bool RemovePhotofromAlbum(string…

Wijlini Abdelmonem
- 13
- 4
0
votes
0 answers
send clean url with MapRoute mvc5
I'm new in mvc5, and I don't understand well how to form a clean url.
Right now my RouteConfig.cs file looks like :
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
…

Gérard Le Cloerec
- 55
- 8
0
votes
1 answer
if router don't match,how to return 404?
public class BookController : Controller
{
public ActionResult Show(int bid)
{
return View();
}
}
routes.MapRoute(
name: "Show",
url: "Book/{bid}/",
defaults: new {controller = "Book",…

Jack
- 1
0
votes
1 answer
MVC 5 Maproute Use Subdirectories as filters
I am looking for a solution to an MVC 5 problem whereby I would like to use a dynamic subdirectory structure to filter a controller and action
For example if I enter the following url
mysite.com/UK/Essex it calls the controller Home and the action…

Daniel Gradwell
- 41
- 3
0
votes
2 answers
maproute, querystings and mvc
I have two routes:
routes.MapRoute(
"FetchVenue",
"venue/fetchlike/{q}",
new { controller = "venue", action = "fetchlike" }
…

iasksillyquestions
- 5,558
- 12
- 53
- 75
0
votes
1 answer
Since I wrote a route for a specific Action of a Controller, do I need to write a route for all Actions inside the Controller?
I'm writing few routes for my MVC application. I have the following routes for my application:
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Pages",…

Dan
- 1,518
- 5
- 20
- 48
0
votes
1 answer
MapRoute (Asp.Net MVC 2.0 .NET 4.0)
is there any possibility to create a maproute which would use always one method and it won't be necessary to put it in address?
I mean I've got controller with one method (Index) and it displays items depend on methods argument.
public ActionResult…

TrN
- 1,230
- 2
- 17
- 32
0
votes
1 answer
URL routing requires /Home/Page?page=1 instead of /Home/Page/1
I am trying to build my ASP.NET MVC 4.5 project to use search engine friendly URLs. I am using the following route mapping.
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}/{title}",
defaults: new { controller = "Home",…

MSOACC
- 3,074
- 2
- 29
- 50
0
votes
1 answer
MVC RouteConfig custom maproute issue
I have this in my routeConfig:
routes.MapRouteLowercase(
name: "newProduct",
url: "{name}-{thisID}",
defaults: new
{
controller =…

Sepehr Estaki
- 331
- 5
- 19
0
votes
1 answer
What is wrong with this MVC route?
I want to create a custom image URL handler, which can handle GET requests with the following URL pattern:
http://blah.com/images/image1.gif
To handle this I created the following route:
routes.MapRoute(
name: "appImages",
…

jujiro
- 190
- 1
- 1
- 11
0
votes
0 answers
Route map in JSF
Im building a site with JSF and i need to have the following urls:
www.---.com/domain1/page.jsf
www.---.com/domain2/page.jsf
...
www.---.com/domainN/page.jsf
In ASP.NET i was able to do that this way:
routes.MapRoute(
name: "Default",
…

Fabricio
- 15
- 4