Skip to main content

All Questions

Tagged with
0 votes
1 answer
39 views

Razord Page specifying Parameter and SupplyParameterFromQuery for Property gives null result for Parameter

There are 2 routes to my .NET 8 razor page: https://localhost:7215/DemoForm/30030443-2b0c-4b94-959d-fb6132dc164f https://localhost:7215/DemoInfo?oid=30030443-2b0c-4b94-959d-fb6132dc164f Demo.razor: @...
HTK's user avatar
  • 1
0 votes
1 answer
51 views

Is there a way to easily implement type-safe routing in Blazor?

I am working on a Blazor project, and couldn't help but notice that the navigation is not type-safe. It is really hindering the development process, as it is really easy to make mistakes related to it....
Olivér Raisz's user avatar
0 votes
2 answers
62 views

ASP.NET Core MVC : MapControllerRoute with generic pattern not allowing POST

I have the following setup created: app.MapControllerRoute( name: "Product", pattern: "product/{*url}", defaults: new { controller = "Product", action = "...
JohnPete22's user avatar
0 votes
0 answers
62 views

Why is the route with parameters not processed?

I just started practicing with ASP.NET Core, but I have already encountered a problem that I can't find a solution to for 3 hours. I wrote this simple code, but for some reason I can't process the ...
user29655545's user avatar
0 votes
0 answers
62 views

ASP.NET Core : DELETE route handler not working

I am trying to learn how to create REST API using ASP.NET Core, and I've managed to create working GET and POST requests, but for some reason, the DELETE request is not working. What am I missing? ...
dagmawi's user avatar
  • 99
2 votes
1 answer
168 views

How to set the root path of the url for my api endpoints?

I don't want to use UsePathBase() for some reasons. I try to use MapExtensions.Map() like below. But it does not work. Respond with "404 Not Found" when I request "/api/v1/...
Erickson's user avatar
0 votes
1 answer
305 views

ASP.NET Core 8 Razor Pages Binding Multiple Page Models to Single Route

I'm working with ASP.NET Core 8.0.8. My razor page application has a dynamic Table.cshtml page with route @page "/table/{table}" that can take any model and display the associated database ...
user27271256's user avatar
0 votes
1 answer
66 views

C# .NET8 web app: how can I route "bad" URLs to main page?

We've deprecated an old ASP.NET web site written in VB.NET. In its place, we've substituted a simple "banner page" written in C# on .NET 8. The new app has a main page, and pages for adding,...
zimmie's user avatar
  • 1
0 votes
0 answers
40 views

Blazor execute code for a specific route pattern

0 I have a set of pages that all follow a similar pattern of /{report}/{id} but where {report} is replaced with a concrete name for each page. We also have a singleton reportManager that used to be ...
Birdalicious's user avatar
0 votes
0 answers
52 views

Action is not mapping by Custom router in ASP.NET Core 8 Web API

In my ASP.NET Core 8 Web API project written in C#, we need to route the below endpoints to a single action method with a custom route in the API. Here is my code - CustomRouter: public class ...
R.A 1's user avatar
  • 127
0 votes
1 answer
48 views

Wildcard route for ASP.NET Web API

In our ASP.NET Web API project written in C#, we need to route the below endpoints to a single action method with WildCard route in the API: http://mycomparydomain.com/api/records/recordsearch?...
R.A 1's user avatar
  • 127
0 votes
1 answer
42 views

Asp.net: Conflicting method/path when implement a controllerbase

I defined a class named BaseController which implements from ControllerBase, it has a query function with [HttpGet], when i define another class named UniqueController implements from BaseController, ...
ltdwonder223's user avatar
0 votes
0 answers
47 views

ASP.NET MVC 5 - render views from subfolders

We have a very basic ASP.NET MVC project that includes an EmployeeController and a StudentController. In the Views folder, we have the corresponding Employee and Student folders. In the Employees view ...
shanderson's user avatar
0 votes
1 answer
231 views

ASP.NET Core 8 Razor Pages Routing with Parameter conflicting PageModels

I'm working with ASP.NET Core 8.0.8. I have various models that represent different tables in a connected database. I have a Table.cshtml razor page that will take the name of a table as a parameter (...
user27271256's user avatar
0 votes
1 answer
49 views

How do l solve directory issues on my ASP.NET MVC project? Each time l am taken to the Identity folder, the folder locations of my views are changed?

I'm experiencing a routing issue where navigating to certain pages, such as the Admin Index, results in a "page not found" error because the views are not located inside the Areas folder, ...
Elvis Chimuse's user avatar

15 30 50 per page
1
2 3 4 5
112