Questions tagged [routeconfig]

86 questions
0
votes
0 answers

MapPageRoute Arabic characters not working with Arabic characters

Is there any way to get this work with arabic characters? I get HTTP Error 404.0 - Not Found routes.MapPageRoute("Ahmad", "Ahmad", "~/asheikh.aspx"); routes.MapPageRoute("AhmadAr", "أحمد", "~/asheikh.aspx"); last one isn't working …
0
votes
1 answer

Getting list of friendlyURL and aspx page they belong to from RouteConfig.cs

I was wondering if there is an implemented way to get a list of objects from RouteConfig.cs, where I would have actual aspx page name and it's friendly URL equivalent. We work with the pagename in URL a lot and it's a pain in the *** to always check…
0
votes
0 answers

routeConfig.navModal is undefined - Aurelia

I am using Aurelia for this first time. While doing the contact manager tutorial, I faced a problem with RouteConfig.navModal.title. Everytime I try to trigger that line, I am getting Uncaught (in promise) TypeError: this.routeConfig.navModal is…
NekoMisaki
  • 101
  • 1
  • 6
0
votes
1 answer

Asp.net MVC route config

First, I'm not a developer (ui designer), but I'm having to work with some asp.net, well, because life...so I know little to nothing. I have a structure like this: Views > Partners > and inside the "Partners", I have over 40 files named in…
0
votes
1 answer

How to handle HTTP 404 with ASP.NET MVC projects

I have been searching a lot for the way that I can handle 404 error for redirect it to a page designed and named 404 error. Some of the articles say that I should do some changes in Route config. I changed it and now below codes are my route.config…
0
votes
1 answer

The controller for path " " was not found or does not implement IController. error

I pull the tags in the news details section. The corresponding code block is below. NewsDetail: foreach (var item in etiketler.Take(1)) {
0
votes
1 answer

Custom Route in ASP.NET MVC to bypass Home Controller/Index

My current website requires user to choose their restaurant type before accessing the sub menus. For example, when users try to direct access to http://localhost:8888/Restaurant/KFCMenu/?id=KFCCurlyFries they will be redirected to this page…
karl233
  • 1
  • 1
0
votes
1 answer

Change route string url of blog from controller/action/{*Url} to {*Url}

I have my personal blog site which was done using Asp.Net MVC and C# language. As I have configured RouteConfig with "controller/action/{*Url}" for blog URL where {*Url} could be any text. Now I want to change the Url pattern from…
Mahavirsinh Padhiyar
  • 1,299
  • 11
  • 33
0
votes
1 answer

How to configure routeConfig.cs to take input directly after root domain

Check the code bellow. Here in route i want to give user enter input of username in url just like example.com/username but problem with that RouteConfig.cs is this cant take input like that. This will only take controller/method format. Please…
Mr John
  • 119
  • 7
0
votes
0 answers

router config in react router

enter link description here I have given sandbox app link. What i am trying to do is route config for nested routes in react. I was able to do route for home,about and contact components. But when I am trying route child of contact component I am…
Jerrin stephen
  • 204
  • 3
  • 12
0
votes
1 answer

How to set default language in MVC RouteConfig?

I have a Language table on my database. There is one primary language. My software on layered architecture. Layers : Domain-Data(Repository)-Business-Presentation And I am using Ninject for DI. So, I should get primary language while application…
0
votes
1 answer

ASP.Net MVC: How to configure route for action with 2 parameters?

I have Get actions in my controllers which have two parameters. I call them from Razor views like this using JS functions: function deleteAddress(addressId) { url = '@Url.Action("Delete", "Addresses",new { addressId =…
VSB
  • 9,825
  • 16
  • 72
  • 145
0
votes
0 answers

MVC routes with different actions when path has similar pattern

In my MVC app I have two paths with a similar pattern and my route config file has methods like below. routes.MapRoute( name: "Route1", url: "bookings/{username}", defaults: new { controller = "Booking", action =…
user2837480
  • 349
  • 2
  • 18
0
votes
1 answer

ASP.NET MVC RouteConfig - Changes Detecting Late

I am using dynamic routeconfig: foreach (var urn in db.Urunler.Where(x => x.UrunKategori.DilId == item.Id).ToList()) { routes.MapRoute( name: "Urun" + urn.Id, url: @urn.Id + "/" + @urn.UrnUrl, defaults: new { controller =…
0
votes
1 answer

mvc url pattern (hide controller and param keys)

I have a project in .net 4.5 Mvc on vs 2015. there is an action with params such as ../Catalog/Category?Src=Trendings&order=Mostpopular in my url I don't want to show name of the controlller and "?" this code should look like this:…