Questions tagged [maproute]

148 questions
0
votes
1 answer

URL rewriting using similar MapRoutes

I have 2 similar maproute requests but I'm trying to target different routes. Basically I'm creating a picture project using ASP.NET MVC. What I want is to have the URL as: website.com/pictures/username and website.com/pictures/pictureid I'm using…
Ultigma
  • 515
  • 6
  • 20
0
votes
2 answers

How to make this map routing work

I'm trying to make this map routing work for my .net client-server application using angularJS. It's my first time doing map routing and angularJS so I'm having quite an hard time understanding how it works. Basically, I have a website with Client…
snaplemouton
  • 1,459
  • 14
  • 28
0
votes
1 answer

Correct Route Patterns in MVC4

I Have a calendar at www.server.com/events/calendar. My event query string looks like www.server.com/events/calendar/seofriendly-event-query-string. But users can select the events by year and months using drop down lists, so mu query becomes…
Roman
  • 665
  • 1
  • 9
  • 24
0
votes
1 answer

Custom MapRoute with URL compliant characters

In the past I have done development MediaWiki and am interesting in creating a route similar to the Wiki format {namespace}:{article}. In the process of testing out my creation but am running into problems with the URL pattern. routes.MapRoute( …
GoldBishop
  • 2,820
  • 4
  • 47
  • 82
0
votes
0 answers

draw driving route on a fragment map with waypoints on android

I'm trying to draw a route on my fragmentMap; when i "give" to google only origin and destination points averythings goes fine; but when I try to add few waypoints, it fails! This is the code, I hope you'll give me a solution, i'm going crazy!Thanks…
0
votes
0 answers

MVC4 Multiple Routes/ Multiple Domains and Sub Domains - General Exception

Working on a MVC4 project where one of the domain has sub-domains and there are other 2 domains which should point to the same Global.asax. All subdomains working fine but getting general exception when trying to open main domains ex: www.pqr.com,…
0
votes
1 answer

catching base url when using catchall maproute of asp .net mvc

If I use a maproute like routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); The resulting url of Url.Action("","")…
serefbilge
  • 1,654
  • 4
  • 29
  • 55
0
votes
1 answer

How to MapRoute to one level up

How do I route this directory: mywebsite/Views/Reports/Page.aspx To this directory? mywebsite/Reports/Page.aspx The page must be a wild card, so something like this: mywebsite/Views/Reports/* To something like this: mywebsite/Reports/* Here is…
Bill Software Engineer
  • 7,362
  • 23
  • 91
  • 174
0
votes
1 answer

ASP.NET MVC 2 - How to write RouteUrl with Url property in context.MapRoute modified?

I have an area named User, and I write MapRoute for it: context.MapRoute( "User_Category", "User/Category/{categoryId}", new { controller = "Product", action = "Category", categoryId = UrlParameter.Optional }, new {…
0
votes
2 answers

ASP.NET MVC route map

Please help me to correct my ASP.NET MVC Route Map. I've got a menu item with an ActionLink:
  • @Html.ActionLink("Articles", "List", "Article")
  • On the Home page it looks like: localhost/Article which is OK. But on the concrete Article page…
    Yuriy Mayorov
    • 961
    • 4
    • 15
    • 32
    0
    votes
    1 answer

    How to show route between two points using google map v2

    I want to show a route between two points in Google Maps V2. I am able to achieve this with V1 but Google Map V2 does not support geopoints. So what should I do?
    Nitish Patel
    • 1,026
    • 2
    • 19
    • 36
    0
    votes
    1 answer

    MVC .NET 4 MapRoute + ActionLink or RouteLink issue

    Okay, so here's the deal. I've got controller called "Hotel" with view called "Index", where I'm trying to produce code allowing me to generate links in form of: ../Hotel?id=1 with ID passed as argument. To do so, I've tried using…
    0
    votes
    1 answer

    Regular expression to avoid "Images" in controller name

    In this moment I have the next MapRoute routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = UrlParameter.Optional },//…
    Pedre
    • 446
    • 1
    • 8
    • 16
    0
    votes
    2 answers

    MapRoute not working, URL still says page not found?

    Maybe I am confused here but I am trying to go to http://ryan.local.myappname.com/Order other things such as /Home work and I checked and found this routes.MapRoute thing and added this: routes.MapRoute("Order", "Order", new { controller = "Order",…
    MetaGuru
    • 42,847
    • 67
    • 188
    • 294
    0
    votes
    1 answer

    How to get the TLD with MapRoute?

    I have many host names on IIS that point to the same ASP.NET MVC app. www.domain.com www.domain.co.uk www.domain.net ... How can I get the top level domain (es. ".com") when I set a map route like the following? Shared Sub RegisterRoutes(ByVal…
    Max
    • 4,965
    • 17
    • 49
    • 64
    1 2 3
    9
    10