Questions tagged [maproute]
148 questions
0
votes
1 answer
how to change area to seprate project by MapRoute in asp.net mvc
how to change area "Admin" to seprate project by MapRoute in asp.net mvc like picture
i'm using code:
namespace App.Web
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
…

Mehradi
- 32
- 7
0
votes
1 answer
route on the map between 3 point Android Google maps API2
help me please)
I want write map routing between 3 point. I have this code, but there is a one problem:
E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.max.mymaprouting, PID: 7236
java.lang.NullPointerException:…

Undersoulmax
- 1
- 1
0
votes
1 answer
How to modify route to use different path to another folder/controller?
My current app structure is as follows:
Controller
UserAdminController
GroupsAdminController
I want to modify it the way that for each administration group I have its own folder. For example:
Controller
UserAdmin
…

gene
- 2,098
- 7
- 40
- 98
0
votes
1 answer
ASP.NET MVC URL Routing problem
i have defined a route as below:
context.MapRoute("SearchEngineWebSearch", "search/web/{query}/{index}/{size}",
new
{
controller = "search",
…

Sadegh
- 4,181
- 9
- 45
- 78
0
votes
1 answer
Using Map Quest/OpenStreetMap for Routing - Trying to avoid certain markers when drawing the path to destination
Hi I'm trying develop an application for android using OpenStreetMap/MapQuest. is it possible to manipulate the routing feature in order to avoid certain streets while drawing the path to destination, with these streets defined using map markers? if…
0
votes
3 answers
Customize ASP.NET MVC MapRoute
Default ASP.NET MVC project has one MapRoute like
routes.MapRoute(
"Default",
"{controller}/",
new { controller = "Home", action = "Index" }
);
And urls like these are equivalent: www.mysite.com,…

shadeglare
- 7,006
- 7
- 47
- 59
0
votes
1 answer
How to control the behavior of Html.ActionLink with MapRoute
In MSVC4, what is the accepted method of generating links in the form /Controller/Action/parameter?
I have this in an .ascx...
<%=Html.ActionLink(linkText:=doc.DocumentName, _
actionName:="CommissionPayment", _
…

15ee8f99-57ff-4f92-890c-b56153
- 36,786
- 7
- 62
- 114
0
votes
1 answer
How to set OSRM (Open Source Routing Machine) route markers by a javascript?
I tried OSRM online demo [1] and Front End source codes [2]
http://map.project-osrm.org/
https://github.com/Project-OSRM/osrm-frontend
There we can set start and set location on text boxes. In order to set route markers between start and end we…

Tharik Kanaka
- 2,490
- 6
- 31
- 54
0
votes
2 answers
Secure a route in MVC without a Controller
I have a .Net Web Project, however for the most part we are using html pages (ideally we would have a website project instead). These pages are loading there dependencies with RequireJS, so the only Razer part is happening with loading the initial…

Andrew
- 718
- 1
- 7
- 25
0
votes
1 answer
mvc4 how to redirect route to the new version in the route config
I originally had this maproute in my RouteConfig
routes.MapRoute(
name: "thread",
url: "{Areamix}/{urltitle}/{id}/thread",
defaults: new {controller = "thread", action = "view"
});
The…

user1591668
- 2,591
- 5
- 41
- 84
0
votes
1 answer
Creating an ActionLink and MapRoute that there is a constant name in it
In my Asp.net MVC 5 (C#) project I want to create some links by @Html.ActionLink or every you know is better like:
/Tags/Linq
/Tags/SqlServer
/Tags/MVC
That Tags is constant name and after that in the URL is tag name.For example like ScottGu's…

x19
- 8,277
- 15
- 68
- 126
0
votes
2 answers
MVC 4, MapRoute for /{parameter} URL
How can I map a URL in this format
http://DOMAIN/{userID}
but not overriding the default format {controller}/{action}/{id}??
I tried this but it's not working:
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
…

Juan José Cumba
- 87
- 1
- 2
- 6
0
votes
1 answer
MVC 4, choose dynamically MapRoute on the fly
I googled a lot but still got no luck.
This is my RouteConfig.cs.
routes.MapRoute("BackRoute", "back/{controller}/{action}"
,new { controller = "Home", action = "Index" });
routes.MapRoute("Default", "{controller}/{action}"
,new {…

fellows
- 3
- 4
0
votes
2 answers
MapRoute problem in ASP.NET MVC (for IIS6)
I have a problem in routing on the server (IIS6). It works OK on the development environment:
routes.MapRoute(
"FindCities",
"FindCities/{state_id}",
new { controller = "Regions", action = "FindCitiesByStateID", state_id = ""…

1gn1ter
- 1,414
- 2
- 22
- 47
0
votes
1 answer
Routes in ASP.NET MVC
I am trying to route a link in MVC project.
I tried two methods:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
…

POIR
- 3,110
- 9
- 32
- 48