Questions tagged [routeconfig]
86 questions
1
vote
0 answers
Route Configuration for displaying list & details component together
I am unable to fetch the id using paramMap because it is coming null.
Can someone help me to understand if there is anything wrong in the router configuration for displaying list & details component together?
most of the examples display the list >…

Ahaan Singh
- 11
- 1
1
vote
1 answer
MVC 4, create URL dynamic for pages
Let's say I have a model called artikel.
this article contains Html "body" text. and a one word title.
Then I want to make a system, where i can use one view to render all of "Article" model's body content.
but use the articles Title prop. to create…

DaCh
- 921
- 1
- 14
- 48
1
vote
0 answers
URL changed after running website
I Implement a web site with ASP.net MVC . it works fine in offline. but after uploading project on my Godaddy host, the URL changed.
My host in Godaddy is somehow that it supprts diffrent domains on one host. there is a website in my root and some…

neda Derakhshesh
- 1,103
- 2
- 20
- 43
1
vote
1 answer
How create RouteLink with custom routes registered in route config?
Im having this routes in RouteConfig:
routes.MapRoute(
name: "AdminGroupsEdit",
url: "admin/groups/{id}",
defaults: new { controller = "Group", action = "Edit" }
);
routes.MapRoute(
…

dennismeister
- 61
- 1
- 11
1
vote
1 answer
Dynamic URL Routing not working with ASP.NET Web forms site
I have website in asp.net web forms. It uses url friendly structure. suppose I have url www.site.com/experience/experience-category. Here there are two different pages experience & experience-category. Now whenever I try to access this url…

SUN
- 973
- 14
- 38
1
vote
2 answers
When I run the solution it opens not the default page in mvc
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url:…

Yitzhak Weinberg
- 2,324
- 1
- 17
- 21
1
vote
0 answers
Deeplinking: Can we use Route names outside route.config?
I am working on deeplinking in ASP.NET MVC and using Angular JS. I have a doubt regarding that. When we specify Routes in RouteConfig.cs, can we access them outside that file to determine that if user is in deeplink or not? How to build deeplink…

Priya Payyavula
- 387
- 4
- 12
1
vote
0 answers
Angular2: Double slash in url
Parent component: App
@RouteConfig([
{
path: '...',
name: 'Home',
component: HomeCmp
},
{
path: '/404',
name: 'NotFound',
component: Error404Cmp
},
{
path: '/*path',
redirectTo: ['NotFound']
}
…

Artem Silin
- 11
- 1
1
vote
1 answer
ASP:NET MVC Route Config allow #
I have a RouteConfig.cs file in my application, and when I go to the route http://localhost:49735/applicationform/-5622850/G0085 it's all well and dandy, but when I try to go to the route http://localhost:49735/applicationform/-5622850/#G0085 it…

Michael Tot Korsgaard
- 3,892
- 11
- 53
- 89
1
vote
1 answer
ASP.NET MVC 5 - How can I change the route in httpErrors?
I am trying to handle the HTTP errors in a MVC5 site this way:
web.config:

user3333069
- 61
- 1
- 1
- 3
1
vote
1 answer
App not changing route correctly. How do I get routeConfig working for my app?
My angular 2 typescript app component routes dont seem to work.
When I change to login in address bar it doesnt pull in the html.
It doesnt give a console error either
Here's my code from my app component:
import { Component } from…

AngularM
- 15,982
- 28
- 94
- 169
1
vote
0 answers
How to test angular2 dynamic routes
I have one issue with angular2 testing.
I have some child component with theirs own routing, route config generated dynamically from service, and when I try to test this component I got error about
non exist getter (it`s normal). But how and where…

Velidan
- 5,526
- 10
- 48
- 86
0
votes
0 answers
ASP.Net MVC Custom 404 for long URL path
I have asp.net mvc RouteConfig as below, it's default one
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url:…

Jey
- 2,137
- 4
- 22
- 40
0
votes
1 answer
My file path is correct but I get 404 error. ASP.NET Web App(.NET FRAMEWORK 4.6.1)
Even though my file paths are correct when switching between the views I've created, I get a 404 error and I can't fix it. I tried all kinds of ways, but I guess I am missing some information somewhere.
@using EntityLayer.Concrete
@model…
0
votes
0 answers
How to use resx in RouteConfig
How to use resx in RouteConfig like this;
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "GetProjectsCategory",
url:…

erenn
- 5
- 3