Skip to main content

All Questions

Tagged with
0 votes
0 answers
25 views

ASP.NET ignoring routes for specific .html pages

I am running my website on ASP.NET and MVC. Here, I have set up my files as .html file and these gets routed to their respective Controller/actions accordingly. Now for verification of my site on ...
Manish Sharma's user avatar
0 votes
0 answers
29 views

ASP.Net C# URL routing not working - Seems to just redirect

I am trying to use routing to pick up a variable and use it within the page default.aspx, but all it seems to be doing is redirecting the application to the page instead because it changes the URL to ...
P S's user avatar
  • 33
0 votes
0 answers
27 views

Area routing in .net core razor pages

I tried to add language route too all pages in an area, but no page found in that specific route. I want to read the {lang} in all pages in the Admin area. I don't want to route all the pages in the ...
Mertez's user avatar
  • 1,101
1 vote
2 answers
100 views

ASP.NET if controller returns NotFound, try other route match or other controller

I have 2 routes mapping that can handle the same route, however one is dynamic from CMS and other uses different controller, something like app.MapControllerRoute( name: "Dynamic", ...
uneasy's user avatar
  • 579
0 votes
1 answer
58 views

Passing Value from Delete Razor Page

I have an app that is structured as follows: Table 1 = Client and Table 2 = Panels Each client can have multiple panels. When I submit my Create Client page, my app will navigate to and open the ...
MelB's user avatar
  • 173
0 votes
1 answer
43 views

How to Pass Value Back to Previous Razor Page? [closed]

I have an app that is structured as follows: Table 1 = Client Tables 2 = Panels Each client can have multiple panels. When I submit my Create Client page, my app will navigate to and open the Create ...
MelB's user avatar
  • 173
0 votes
1 answer
162 views

How to add Blazor Webassembly to the Identity Area of an existing ASP.NET Core web app?

I have an ASP Razor page web app. I want to add a Blazor component to my project. It works when I put this line in the index.cshtml <component type="typeof(CountComponent)" render-mode=&...
Arash.Zandi's user avatar
  • 1,345
0 votes
0 answers
19 views

How to hide login view and make it only accessible by going to custom url?

I have a asp.net c# mvc application and I want to hide the login view from users. I only want someone to be able to go to the login view by surfing to /login. I scatfolded Identity and I can't get ...
Lenny's user avatar
  • 29
0 votes
0 answers
35 views

asp.net 4.7 web api not handling routing correctly when deployed

There is a reason why we had to go with asp.net web api for the time being and not going to look into core at this time. We deployed to our test server and we're getting a strange issue with the ...
James Jackson's user avatar
0 votes
1 answer
190 views

Ocelot routing by body

Is it possible to route request based on value in body using Ocelot? For example: body: { "Token" : 1 // route to http://google.com } body: { "Token" : 2 // route to http:/...
Szymson's user avatar
  • 1,072
1 vote
0 answers
43 views

ASP.NET API endpoint not being triggered with a particular naming convention

I used to be able to trigger a GET endpoint in my controller route named [Route("api/[controller]")] but for some reason this has stopped working. Now, it only works if I rename the route ...
Farooq's user avatar
  • 159
0 votes
0 answers
98 views

How to fix the error " 'attribute' appears more than one time in Route template" on .NET Core framework?

I'm developing an API controller, but for some reason, the server throws this error: System.ArgumentException: The route parameter name 'SubjectId' appears more than one time in the route template. (...
Turing's user avatar
  • 21
0 votes
1 answer
453 views

How do I make my program route to a custom 404 error page? (C#/.NET)

I have a project that uses the Entity Framework. I am trying to make it route to a custom Error (including the _Layout.cshtml file) page whenever something goes wrong but it keeps returning the ...
Chris Ryan's user avatar
0 votes
1 answer
53 views

How to handle subsequest anchor tag click for filtering data with ASP.NET core routes

I am using.NET 6 MVC Project template. I am getting stucked in to handle subsequest anchor tag click to achieve mutliple paramaters data filter. I achieve the single attribute filtering but i am ...
Affan Sheikh's user avatar
0 votes
1 answer
58 views

Can't use [FromQuery] and OData at the same time in ASP.NET 6

I am quite a newbie in building ASP.NET Web Apis (so I apologise in advance if this questions seems a silly one) and the moment came for me to adopt OData in order to have more complex queries. I have ...
ImproveSoftware's user avatar

15 30 50 per page
1
2 3 4 5
78