Questions tagged [maproute]

148 questions
0
votes
0 answers

MVC 3 project - The resource cannot be found

I'm having problem with MVC 3 routing. I have this function in the Global.asax: routes.MapRoute("Invitations", "api/invitations", new { controller = "Invitations", action = "Invitation" }); And i have…
user1156691
  • 233
  • 1
  • 4
  • 11
0
votes
1 answer

MapRoute in mixed web forms/MVC app

I have an older web-form app and now I am trying to add new pages using MVC. It all seems to work just fine except one thing: The application's default page (login.aspx) is a web form. When user hit link www.mysite.com, instead of opening…
Eugene Z
  • 151
  • 1
  • 6
0
votes
1 answer

Specifying a RouteValue to match pattern /id

I am using asp.net mvc2 and would like my site to show details (of 123) if a user enters foo.com/123. What is the route value I should specify for this, and in what order? I tried routes.MapRoute( name: "foobar", url: "{id}", defaults:…
Ra.
  • 289
  • 1
  • 3
  • 16
0
votes
1 answer

mvc3 controller not working - is path mapped wrong

Here is my code: public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", // Route name …
NoviceMe
  • 3,126
  • 11
  • 57
  • 117
0
votes
1 answer

Personalize asp.net MVC routing ruler

I don't completely understand how to use routing in asp.net mvc. I've organized my views and controllers in 2 main folders: frontoffice and backoffice. Now I'd like to have the actions inside backoffice that build the url in this way:…
Mino
  • 635
  • 10
  • 28
0
votes
2 answers

ASP.Net mvc2 url format issue

In my mvc2 project, some URL are shown in the browser like this, localhost:53289/Paper/ViewAgendaPaper?MeetingId=186&type=2&RefId=186 but i prefer to look it like this, localhost:53289/Paper/ViewAgendaPaper In my Global.asax, routes.MapRoute( …
Dilma
  • 625
  • 3
  • 10
  • 22
0
votes
2 answers

MVC 3.0 Maproute Coding

I am writing a new MVC App; I want to make some changes to the routing to add department name to the URL. The following is what is generated by VS 2012. routes.IgnoreRoute("{resource}.axd/{*pathInfo}") routes.MapRoute( _ …
user1621009
  • 81
  • 1
  • 1
  • 4
0
votes
1 answer

ASP.NET MVC customization - Inherit or alter Framework

If you wanted to alter the way that routes were processed can you do that in a MVC project OR do you have to alter the MVC Framework? For example lets say you have the standard code in RegisterRoutes of Global.asax.cs: public static void…
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
0
votes
2 answers

MVC URL not rewriting

I'm trying to change the URL displayed in the user's browser from Happy/Balloons to happy-times/balloon-pops. There are many links in the project to the action "Balloons", so rather than change those links I'd like to change the global.asax so that…
valen
  • 807
  • 1
  • 16
  • 43
0
votes
1 answer

provide URL without the unique parameter names

Does anyone know how to provide routing maps for multiple controllers in the same area with multiple parameter names? I have a request to provide URL without the parameter names (only values) for each controller with unique parameter names (to…
matendie
  • 693
  • 7
  • 11
-1
votes
1 answer

ASP.NET MVC - Routing works for /home but not for /home/index

I am trying to add views for a project I completed online. When I load the default web-page, my Index action in the Home controller loads up. When I navigate to /home, my Index action in the Home controller loads up. However, when I navigate to…
sanji-vs
  • 3
  • 3
-1
votes
2 answers

An MVC 6 route does not perform as expected

I have this route: routes.MapRoute(name: "Trads", url: "test_3000/{action}/{traditional}", defaults: new { controller = "Test_3000", action = "Subset", traditional = UrlParameter.Optional }); And a Test_3000Controller with this method: …
Jim Kay
  • 91
  • 6
-1
votes
1 answer

how to show different route on google map for each salesperson

I am working on a project where i need to track the salesperson's route of movement for a certain period (may span n days). I get locations stored from mobile device which i save in database using web service. Now i have a multi-select drop-down for…
Devjosh
  • 6,450
  • 4
  • 39
  • 61
1 2 3
9
10