tagged [routes]

MVC Ajax.ActionLink doesn't find POST method

MVC Ajax.ActionLink doesn't find POST method I have a POST method declared in my controller: and an ActionLink in my view: ```

How to route a .aspx page in asp.net mvc 3 project?

How to route a .aspx page in asp.net mvc 3 project? I have a .aspx page in the following path: I want to route that to the following path in my browser: How can i do that? I try this: ``` routes.MapRo...

16 Apr at 13:36

How do I redirect to the previous action in ASP.NET MVC?

How do I redirect to the previous action in ASP.NET MVC? Lets suppose that I have some pages - `some.web/articles/details/5`- `some.web/users/info/bob`- `some.web/foo/bar/7` that can call a common uti...

6 May at 15:14

servicestack routing - how do you ignore the query string parameters

servicestack routing - how do you ignore the query string parameters For security reasons I want to ignore/disallow all query string parameters. I.e. Can this be acheived in sevicestack without explic...

23 Apr at 23:30

Service Stack Route for a collection field for a service

Service Stack Route for a collection field for a service I have a service for Employee with a DTO I would like to understand how to hand

22 May at 19:27

How to get default gateway in Mac OSX

How to get default gateway in Mac OSX I need to retrieve the default gateway on a Mac machine. I know that in Linux route -n will give an output from which I can easily retrieve this information. Howe...

5 Mar at 19:53

Nested object routing with ServiceStack

Nested object routing with ServiceStack I would like to set up something like below as it is a cleaner POCO design, but it seems that I can only make this work by creating a `UserId` property of `int`...

31 Aug at 03:38

How to use predefined routes in ServiceStack with URI instead of query string?

How to use predefined routes in ServiceStack with URI instead of query string? Is it possible (if yes, how) in ServiceStack to use predefined routes with parameters in the URI? I can do one or the oth...

30 May at 08:53

Passive Link in Angular 2 - <a href=""> equivalent

Passive Link in Angular 2 - equivalent In Angular 1.x I can do the following to create a link which does basically nothing: But the same tag navigates to the app base in Angular 2. What is the equival...

Servicestack conflicting routes?

Servicestack conflicting routes? I have the following request objects: ``` [Route("/Model/Blah/BySlug/{Slug}/", "GET")] [Route("/Model/Blah/ByBlahSeriesId/{SomeOtherId}/", "GET")] [Route("/Model/Blah/...

28 Mar at 08:58

How to get a list of all routes in ASP.NET Core?

How to get a list of all routes in ASP.NET Core? In ASP.NET Core, is there a way to see a list of all the routes defined in Startup? We are using the `MapRoute` extension method of `IRouteBuilder` to ...

How to determine if an arbitrary URL matches a defined route

How to determine if an arbitrary URL matches a defined route How can I tell if a string matches a particular named route? I have a route like this: ``` routes.MapRoute( "FindYourNewRental", "find-...

ASP.NET Core routing prefix

ASP.NET Core routing prefix I'm developing an ASP.NET Core application. My application hosted with NGinx on url `http://somedomain.com/MyApplication`. I need all requests routed to prefix `/MyApplicat...

6 Jun at 11:1

How to flush route table in windows?

How to flush route table in windows? I am trying to write a program that changes the default gateway of network time by time. But it seems that there are caches on the route table in every process so ...

16 Mar at 14:31

Naming service methods in ServiceStack

Naming service methods in ServiceStack I am creating my first ServiceStack application. I think it is great but find that I have limited flexibility in the naming of methods in the Services. An exampl...

8 Dec at 01:0

Servicestack Query String

Servicestack Query String I Am trying to link values from a set query string to attributes in a service stack object. The following code snippet illustrates what I am trying to achieve. (I want to map...

2 Apr at 14:20

ServiceStack use the same "model" to multiple services

ServiceStack use the same "model" to multiple services I am new to ServiceStack and I am not currently familiar with the structure on how to develop a good API. I am trying to use the same Player mode...

17 Feb at 13:2

Servicestack cool uri's not resolving when deployed

Servicestack cool uri's not resolving when deployed We are working successfully with cool uri's in development (SS v3.9.64, Visual Studio 2012, Framework 3.5), for instance: But when we deploy it we j...

2 Feb at 14:9

ServiceStack Routing does not work with querystring

ServiceStack Routing does not work with querystring I have a simple REST service built with ServiceStack. If I configure the routes like this: This request succeeds. --- If I

28 Aug at 17:13

The requested resource does not support HTTP method 'GET'

The requested resource does not support HTTP method 'GET' My route is correctly configured, and my methods have the decorated tag. I still get "The requested resource does not support HTTP method 'GET...

28 May at 13:42

How to get network adapter index?

How to get network adapter index? From code I want to force a Windows machine to use a specific network adapter for all connections to a specific IP address. I plan to do so by using the ROUTE ADD com...

21 Jun at 19:57

Multiple Controllers with one Name in ASP.NET MVC 2

Multiple Controllers with one Name in ASP.NET MVC 2 I receive the following error when trying to run my ASP.NET MVC application: > The request for 'Account' has found the following matching controller...

ServiceStack Query String Mappings

ServiceStack Query String Mappings I'm curious if it is possible to modify the servicesstack Route mapping rules. I'd like non-query string parameters to go in one area of the model and the query str...

27 Dec at 14:47

What is "name" property in the constructor for HttpGetAttribute?

What is "name" property in the constructor for HttpGetAttribute? When I use , intellisense tells me that besides the first argument, i.e. , I also have and . While the latter is obvious to me, I got a...

Struggling to configure multiple routes

Struggling to configure multiple routes The `/v1/Tenants/{TenantId}` Route is working but `/v1/Tenants/{TenantName}` route is not working, am not sure what is wrong? Also, is this a proper way to desi...

2 Jan at 17:27