Top "Asp.net-core-mvc" questions

ASP.

Create Custom HTML Helper in ASP.Net Core

I want to create my own custom HTML Helper like the ones used in ASP.NET MVC, but I haven't …

asp.net-core asp.net-core-mvc
Get role/s of current logged in user in ASP.NET Core MVC

How can I get the logged in user's role/s in ASP.NET Core MVC? I want to get role …

c# asp.net-core asp.net-core-mvc user-roles
How to add IHttpContextAccessor in the Startup class in the DI in ASP.NET Core 1.0?

In ASP.NET Core RC 1 I used the following code to retrieve the value of context (full address of the …

c# asp.net-core asp.net-core-mvc asp.net-core-1.0
Radio Button Tag Helpers in ASP.NET 5 MVC 6

I don't see any tag helpers for radio buttons in ASP.NET 5 MVC 6. What's the right way of handling form …

c# asp.net-mvc asp.net-core asp.net-core-mvc tag-helpers
Basic Authentication in ASP.NET Core

Question How can I implement Basic Authentication with Custom Membership in an ASP.NET Core web application? Notes In MVC 5 …

asp.net-core basic-authentication asp.net-core-mvc asp.net-core-1.0
What is the equivalent of Server.MapPath in ASP.NET Core?

I have this line in some code I want to copy into my controller, but the compiler complains that The …

asp.net asp.net-mvc asp.net-core asp.net-core-mvc
.NET Core MVC Page Not Refreshing After Changes

I'm building a .NET Core MVC on the latest version 2.2. I have a problem when I make changes to the …

asp.net-core .net-core asp.net-core-mvc asp.net-core-2.2
How do I define the password rules for Identity in ASP.NET 5 MVC 6 (vNext)?

The default Identity provider provided in ASP.NET 5 has very strict password rules by default, requiring a lower case character, …

c# asp.net asp.net-mvc asp.net-identity asp.net-core-mvc
How to specify the view location in asp.net core mvc when using custom locations?

Let's say I have a controller that uses attribute based routing to handle a requested url of /admin/product like …

asp.net-core asp.net-core-mvc asp.net-core-1.0 asp.net-core-2.1