Questions tagged [routeconfig]
86 questions
0
votes
3 answers
How can I do route configuration in ASP.NET MVC?
How can I do route configuration as below?
My current url is: http://localhost:4815/Home/ByCategory/1
But I want it to be: http://localhost:4815/CategoryTitle
public ActionResult ByCategory(int? id)
{
...
}
routes.MapRoute(
name:…

Engin Ozsozgun
- 47
- 8
0
votes
1 answer
MVC 5 Routeconfig Routing Url.Action returns null
I spend 3 hours and didnt get success. I cant figure out the right solution.
This is what I am trying and getting null. My homepage is working but the others is not working.
Url.Action("ShowDilKursuMenu","DilKursu") => getting null
I am trying…

Alican Kablan
- 399
- 8
- 17
0
votes
1 answer
Route config trims all the params in the get request
I have a route config in MVC project:
routes.MapRoute(
name: "Client",
url: "Client/{webUi}/{lang}/{*controllerUrl}",
defaults: new
{
controller = "Client",
…

Srijani Ghosh
- 3,935
- 7
- 37
- 68
0
votes
1 answer
Is it possible to use a variable for the action in the MVC routeconfig file
I am trying to see if I can use the action part of routes.MapRoute for a route in routeconfig.cs file
I tried:
routes.MapRoute(
name: "Person",
url: "person/{action}/{param1}",
new { controller = "Person",…

trstill
- 11
- 1
- 3
0
votes
0 answers
Getting error msg "The name 'RouteConfig' does not exist in the current context"
Error CS0103 :The name 'RouteConfig' does not exist in the current context

Joyal George
- 51
- 1
- 5
0
votes
0 answers
Routing issue for the simple post api
I have a action in controller which is returning a class which hold only a message like
public Result UpdateTestCaseExecution(string appSecret, string appKey)
{
Result result = new Result();
try.....
…

Adnan Hussain
- 1
- 1
0
votes
1 answer
WebApi custom route for all traffic
I've been looking for an answer to this question without any luck so maybe someone here has a bit more insight:
1) I have an application that makes http calls. (On box 1)
2) I have services that access the database and so on. (On box 2)
3) I'm…
user8900983
0
votes
0 answers
Accessing array inside routeConfig
I have an API which returns an array, which I want to use inside route Config of my $stateProvider... but am unable to do so.
Can someone help me, I have tried using localStorage and $rootScope
Below in my code snippet:
(function() {
'use…

Dave1
- 48
- 1
- 10
0
votes
1 answer
How can i use Aimeos Laravel package Routes as localhost Routes in Laravel 5.4?
When i run the package from IP that is generated by php artisan serve command, its run easily. It I another icon of the site then it can not find valid route. As example some images is attached.
http://localhost/ecomerce/public/list.
After…

rockey
- 37
- 1
- 6
0
votes
1 answer
Angular4 Error: router_deprecated_1.RouteConfig is not a function
I have an App I made locally using the new router from Angular 4 but routes don't work in Plunker with it, rather, you have to use the old deprecated router in order for routes to work properly in Plunker. I'm porting my app from my local machine to…
0
votes
1 answer
MVC RouteConfig Style
In my table I have two links:
@Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
@Html.ActionLink("Events", "LocationEvents", "Events", new {locationId = item.Id}, null)
Now my goal is when I hover over the links I want the url to look like…

Grizzly
- 5,873
- 8
- 56
- 109
0
votes
1 answer
I want to set my homepage like this /#projects asp.net mvc
I want to set my homepage like this /#projects asp.net mvc.
on route config file i tried some options but didnt manage to solve it yet
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
…

yunus durnagöl
- 9
- 1
0
votes
1 answer
Route Config for dynamic urls
So Im working on an MVC 4 application. My problem is for a certain controller the Url can be http://domain/category/clothing/1256 or it can be http://domain/category/clothing/shirts/formal/128'. As you can see the depth of the url changes but all…

Sujit.Warrier
- 2,815
- 2
- 28
- 47
0
votes
1 answer
MVC homepage not working, RouteConfig and Global files look OK
I'm working in MVC 5 and have taken over a project. When I log onto the homepage "mydomain.com" it comes up with an error:
"Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. Requested URL:/"
If I type in…

Zach
- 15
- 3
0
votes
0 answers
Asp MVC Routing not working Properly
I'm new to MVC Framework; I'm trying to learn.
I'm trying to Redirect from Login to Home Page
[HttpPost]
public ActionResult Login(Register model)
{
StudentDBHandle db = new StudentDBHandle();
DataTable dst = db.Login(model);
if…

Prakash N
- 54
- 8