Top "Asp.net-core-mvc" questions

ASP.

ASP.NET Core—access Configuration from static class

I want a simple static class that accesses the Configuration object. All the config info is already read in from …

asp.net-core-mvc
Dependency Injection with classes other than a Controller class

At this point I'm injecting things into my Controllers with ease, in some cases building my own ResolverServices class. Life …

c# asp.net-core asp.net-core-mvc .net-core
TagHelper for passing route values as part of a link

When specifying asp-controller and asp-action on a link, what's the syntax for also passing an id attribute? E.g. If …

asp.net-core asp.net-core-mvc tag-helpers
Encrypted configuration in ASP.NET Core

With web.config going away, what is the preferred way to store sensitive info (passwords, tokens) in the configurations of …

asp.net-mvc asp.net-core asp.net-core-mvc .net-core
ASP.NET core, change default redirect for unauthorized

I am attempting to redirect to a different login url in ASP.NET MVC6 My account controller login method has …

c# asp.net asp.net-core asp.net-identity asp.net-core-mvc
How to read ASP.NET Core Response.Body?

I've been struggling to get the Response.Body property from an ASP.NET Core action and the only solution I've …

c# asp.net-core asp.net-core-mvc asp.net-core-middleware
WebUtility.HtmlDecode replacement in .NET Core

I need to decode HTML characters in .NET Core (MVC6). It looks like .NET Core doesn't have WebUtility.HtmlDecode function …

c# .net asp.net-core asp.net-core-mvc
How to Seed Users and Roles with Code First Migration using Identity ASP.NET Core

I have created a new clean asp.net 5 project (rc1-final). Using Identity Authentication I just have the ApplicationDbContext.cs …

ef-code-first asp.net-identity asp.net-core-mvc seeding
Assigning multiple routes to the same controller or action in ASP MVC 6

Question: Is there any way to assign two different routes (with parameters) to the same controller in an ASP.NET …

asp.net asp.net-core asp.net-core-mvc