All Questions
Tagged with routes asp.net-mvc
2,162
questions
0
votes
0
answers
89
views
Vite.Config Vue3 APP and C# / ASP.NET MVC. How to get the base vue directory correct and not update the URL?
I have a vue3 app that is rendered from a C# ASP.NET MVC controller.
The path looks like this:
mydomain.com/AutomatedDemo/{apikey}/{contactid}
This serves up the vue3 app using a vite.config.js and ...
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",
...
0
votes
1
answer
30
views
How can I redirect to login page when surfing to /login via routes ? C# & ASP.NET MVC
I want to be able to go to the login page by just going to websiteBaseAddress/login - how do I do this with routes in C# using ASP.NET MVC if possible? I work with Identity that has its own area btw.
0
votes
1
answer
81
views
How to prevent breaking MVC routes when changing the name of a method in a controller
I'm wondering if there is a way to prevent errors that could come from renaming a method inside a Controller of an MVC app.
Let's say I have a route defined as
routes.MapRoute(
name: "...
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 ...
0
votes
0
answers
81
views
Convert class route data code mvc to ASP.NET Core 3.1
I have a code for sub domain that I want to convert ASP.NET Core 3.1.
Can you explain to me exactly what you did and how you converted the code?
This code is used for user subdomains without creating ...
0
votes
0
answers
45
views
Multiple parameters with mvc routing
I would like to have this url
/Admin/Product?page=1&keyword=somethingToSearch
But when i submit the form in the UI, the "&keyword" doesn't appear. And i dont understand why. The URL ...
0
votes
1
answer
33
views
ASP.NET MVC5 area section override route action
I'm encountering issues on controller routes when using area section. My home controller (located in the main root) has an action result for logout/signout session. I created a "configuration&...
0
votes
0
answers
176
views
DynamicRouteValueTransformer
I have this route is register on Program.cs
app.MapControllerRoute(
name: "admin",
pattern: "{area:exists}/{controller=Home}/{action=Index}/{id?}");
app.MapControllerRoute(...
1
vote
1
answer
49
views
Default attribute routing not worrking in ASP.NET MVC
I'm trying to use attribute routing in my application. I provided the route attributes to all action methods and also provided the HTTP verbs to the action methods. But I am not able to set the ...
0
votes
0
answers
53
views
The parameters dictionary contains a null entry for parameter 'linenumber'?
I have a controller and that uses View, but when I try to run this View as a way to check my form. It does not load only i get this error from the browser.
The parameters dictionary contains a null ...
0
votes
0
answers
79
views
Accept Encoded Special Character on Routing on MVC Route Config
I have MapRoute on my C# MVC website like this :
routes.MapRoute(
name: "Default4",
url: "{param1}/{param2}/{param3}/{param4}",
...
1
vote
1
answer
42
views
Controller RedirectToAction adds something extra to the url
I have a MVC application where you have to fill in some data then go to the next page, fill in some stuff en etc.
On the second page there is also a button to go back to the first page.
The ...
0
votes
1
answer
185
views
where can i found search input textbox on controller action or view?
I working on asp.net mvc application by csharp . i face issue I can't find controls search input type textbox .
I search on action controller PendingRequests i can't found it .
also i search on index....
0
votes
1
answer
52
views
Multi-lingual routes for areas in ASP.NET MVC
I've got an issue with ASP.NET MVC routing for areas. I set up the routing with language without areas, and it is working fine.
Myrouteconfig.cs:
routes.MapRoute(
name: "LocalizedDefault&...