I have to port over the following ASP.NET MVC code to .NET Core and I'm stuck on how to go about doing this. This is my old ASP.NET MVC code: I co ...
I have to port over the following ASP.NET MVC code to .NET Core and I'm stuck on how to go about doing this. This is my old ASP.NET MVC code: I co ...
I need to build a controller action to handle this pattern: example.com/aString where aString can be any of a set of arbitrary strings. The controll ...
I have an ASP.NET MVC app wherein I want a certain radio button to be checked based on information supplied in the URL. But (and this is key...), I wa ...
When response is redirected through Task aync and await.Redirection cannot not be seen on client side(Browser). Browser is waiting for response always ...
.Net Core MVC, assume a custom route something like this: Is there some way to set it so that if the {leagueName} in the route above is one of 4 st ...
My requirement is to redirect user to new url from old url . My entity is as follows: Url is commented so that I can work in localhost. So when Ol ...
I already have controllers and views in folders under the project name. I added an Area folder and then an area inside it and called it Home and then ...
It has to be something simple that I'm missing, since this is my first try on MVC. Seems nothing works but the default route. This were my steps: ...
I want to have some controller with the single method that would allow me to navigate through some hierarchy (file system etc.). In other words I wan ...
I want to create sub domains on the fly for each of my identity users (AspNetUsers). You can see this kind of feature available in blogger.com. I ha ...
I have multiple routes for my API like How can I make sure that a method in my APIController only can be used by for example the LoginApi route/han ...
I am routing my image and resizing them thru an imageRouteHandler. Here is the code. I am getting this error, the WebImage.Write() will write t ...
I have a heref like this. <a style="background: #3DB39E; text-align: center; color: #ffffff; border: none; width: 60px;" class="btn btn-d ...
I have a custom MvcRouteHandler which checks database if a Url exists and pairs it with some controller action and Id. However if this route handler ...
I'm using MVC 5, I have this url: /Joes-studio-essex This is 2 seperate params {business}-{county} Q1) How can i write a route to split this out?? ...
I have added a route for "privacy.html" to route to Home/Privacy in my ASP.Net MVC project. I've used this in other projects successfully, but it won' ...
I have a website, xyz.com and users are setting up admin accounts where they then have other users that are registering under them. They call their ac ...
Using the library AttributeRouting, I was able to configure attribute routing to use a custom route handler (inheriting MvcRouteHandler): Also, bef ...
I would like it if any Url that is not found is sent to my "Home" controller. And I mean like total garbage urls passed in Like SomeDomain/ThisIsNotAC ...
So I have this custom route, which sets up the route table based on culture in the URL, but when I call Url.Action(...), it does not generate the loca ...