asp.net-routing Questions
1
Solved
I recently upgraded my webapi to .NET 8. As I test my controller, the ApiVersion attribute is not working in the swagger page.
[ApiVersion("1.0")]
[Route("v{version:apiVersion}...
Moyers asked 17/11, 2023 at 14:51
1
Solved
Using ASP.NET Core I am receiving the following token (simplified):
String token = "Z%2F3+3Q==";
The / is encoded using %2F. I received the token from a URL called on the client using Angular.
...
Credential asked 6/1, 2020 at 20:14
4
Solved
I'm creating a multi-tenancy web site which hosts pages for clients. The first segment of the URL will be a string which identifies the client, defined in Global.asax using the following URL routin...
Jarrodjarrow asked 10/12, 2008 at 17:57
7
Solved
The Scenario
I have an application where we took the good old query string URL structure:
?x=1&y=2&z=3&a=4&b=5&c=6
and changed it into a path structure:
/x/1/y/2/z/3/a/4/b/...
Daiquiri asked 26/7, 2009 at 22:29
1
I want to know how can I get the route values in Razor Pages (Page.cshtml).
Ex.
https://localhost:44320/AdminPanel/Admins
if I was using MVC i would get these datas as
var controller = ViewContext...
Cupric asked 6/5, 2018 at 18:0
3
I have a problem
My route have an extra paramater after hierarchical category.
/2009/World/Asia/08/12/bla-bla-bla
asp.net mvc does not support this because my routing should be
{year}/{*c...
Tung asked 9/12, 2009 at 15:11
0
I have an application using .NET Framework 4.7.1 with WebAPI and MVC routes defined in it. They both work when debugging locally with IISExpress, but when I deploy to the Development server (Window...
Mckeown asked 18/4, 2018 at 20:53
4
NOTE: There is no MVC in this code. Pure old Web Forms and .asmx Web Service.
I have inherited a large scale ASP.NET Web Forms & Web Service (.asmx) application at my new company.
Due to s...
Commutable asked 2/2, 2018 at 8:15
1
Solved
cI went through various posts regarding the Areas routing but still I am not able to resolve my issue.
I would like to split my application in the way that there are two routes.
/Areas/Panel
/...
Protectionism asked 21/1, 2018 at 15:43
2
Solved
I saw people use asterisk sign at the time of routing in webform. i just do not understand the importance of Asterisk sign like below one
routes.MapPageRoute(
"View Category", // Route name
"Cat...
Rom asked 25/9, 2011 at 10:8
2
Solved
I have this route:
routes.MapRoute(
"PlaceDetails",
"{controller}/{action}/{id}",
new { controller = "Place", action = "Details", id = UrlParameter.Optional }
);
This routes this fine:
mysit...
Urmia asked 2/7, 2016 at 15:37
1
Solved
I need to update a handful of static web pages, and I would like to take this time to recreate them using ASP.NET Core (ASP.NET 5 with MVC 6) in Visual Studio 2015. I want to rebuild it using Micro...
Chandrachandragupta asked 20/6, 2016 at 17:12
4
Solved
When Urls are autogenerated using the Url.Action helper, if a page contains a line similar to
@Url.Action("Edit","Student")
is expected to generate a url like domain/student/edit and its worki...
Bul asked 14/7, 2011 at 8:1
2
Solved
Using the new Api Controller in MVC4, and I've found a problem. If I have the following methods:
public IEnumberable<string> GetAll()
public IEnumberable<string> GetSpecific(int i)
T...
Reel asked 12/4, 2012 at 9:45
2
Solved
I created a new project in Microsoft Visual Studio Express 2013 for Web.
It is an ASP.NET MVC 5 - .NET Framework 4.5 project.
I wanted to handle (The resource cannot be found):
I did handle it ...
Bitstock asked 4/12, 2013 at 3:21
1
Solved
With the new MVC Attribute routing, I know you can assign multiple Route attributes to a single ActionResult, but I am looking for a way to do the same at the RoutePrefix level. I have a controller...
Stylobate asked 29/6, 2014 at 1:4
1
Solved
I have a stock query application that returns data based upon a stock symbol.
Basically, the AJAX call goes to ~/Stocks/GetStockData/{id} where the {id} is the stock symbol.
This works fine... ge...
Haustellum asked 12/4, 2014 at 12:44
2
Solved
I am trying rating in asp.net mvc4 with entity framework, I have tried this code in cshtml but it is not working, please help me to achieve this. Its working while i am running in normal browser bu...
Advent asked 18/2, 2014 at 7:25
1
Solved
Reading through this blog post on attribute routing in ASP.NET MVC 5 and this one on attribute routing in Web Api 2, it looks like there are two sets of routing attributes, one in the System.Web.Mv...
Brody asked 12/11, 2013 at 18:5
1
Solved
IIS Express is producing 403.14 Forbidden errors when a URL that would otherwise be handled through ASP.NET URL routing happens to correspond to a physical folder in my ASP.NET project. (The folder...
Oscoumbrian asked 12/7, 2013 at 9:0
2
Solved
If I navigate to the following stackoverflow URL http://stackoverflow.com/questions/15532493 it is automatically appended with the title of the question like so:
http://stackoverflow.com/questions...
Krucik asked 9/4, 2013 at 14:9
1
Solved
This question has been asked in a similar but not identical fashion (and not resolved to my satisfaction) previously on Stack Overflow and elsewhere.
Coming from a linux-world, I want to use ASP.N...
Charis asked 23/10, 2012 at 1:8
1
Solved
I am trying to figure out how i can create a route configuration so that all URLS will goto the same VIEW (Page).
CUrrently of course if i do for example
/Products/Id
Then this would look in the...
Sudarium asked 25/9, 2012 at 8:2
2
Solved
I need to add some new life to a legacy application :)
I'd like to call an MVC controller when a "static" HTML page is requested in order to add some markup to the page before returning it to the ...
Caboodle asked 3/7, 2012 at 21:20
1
Solved
I have setup a asp.net web api project (it works exactly the same as a Mvc Project) using routing - hence i have the following
routes.MapHttpRoute(
name: "API Default",
routeTemplate: "api/{cont...
Kutuzov asked 20/6, 2012 at 14:34
1 Next >
© 2022 - 2024 — McMap. All rights reserved.