Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [asp.net-core-mvc]

ASP.NET Core MVC is a lightweight presentation framework for creating dynamic websites with ASP.NET Core. It allows for creating controller based MVC sites, or view model based Razor pages. MVC includes features like routing, model binding and validation, filters, web APIs and the Razor view engine.

0 votes
0 answers
15 views

ASP.NET Core MVC: Comment Replies Not Working After Refactoring

I am working on an ASP.NET Core MVC project that involves posts and comments. Users can leave comments on posts, and they can also reply to other comments. The initial implementation was working (...
Hr.Panahi's user avatar
  • 832
0 votes
0 answers
9 views

Named HTTP Client for Graph API - ASP.NET Core 8 web app

I'm creating a web application in ASP.NET Core 8.0 and I require to use a named HTTP client for updating the signed in user details (e.g. phone number, display name, email..). I require to use HTTP ...
RMM's user avatar
  • 23
0 votes
0 answers
16 views

Access blocked when trying google external login

I'm currently learning how to implement google external login in asp.net core MVC, but it doesn't work with me. I get this message with every time I try it, Access blocked: This app’s request is ...
Hossam Zaki's user avatar
0 votes
1 answer
40 views

ASP.NET Core MVC - Redirect to Access Denied Page on 403

I have a relatively simple ASP.NET Core MVC intranet app that was originally written in .NET Core 2.0, but which I'm trying to update to .NET 8. I'm not making any other changes to it (yet), all I'm ...
David K's user avatar
0 votes
0 answers
42 views

Populate a many to one relationship and how to show data input only once but increment if the date in the input are the same

I am currently working on a web project that required user to input a group of value for each person in a department per day then display it in two other index for day and month. I'm having problems ...
Trung Đặng Đức's user avatar
0 votes
1 answer
43 views

After invalid ASP.NET MVC server login, how can I capture the error text in the returned Json response and display in the Angular client?

Angular 9 Client login page I want to display the specific returned error message in the <h4> element, instead of the generic message that displays currently. <div class="navbar bg-info ...
Cwinds's user avatar
  • 199
0 votes
0 answers
36 views

ASP.NET Core 8.0 JWT Authentication not working on others controller except the Authentication Controller

I'm encountering an issue with JWT authentication in my ASP.NET Core 8.0 application. While the token generation and authentication seem to work correctly in my AuthenticationController, any requests ...
user22096230's user avatar
0 votes
0 answers
20 views

Handling long-running async AJAX requests in ASP.NET Core MVC with Bootstrap 4.8 and JS

I have an ASP.NET Core MVC project with HTML Bootstrap 4.8 and JS. Some user requests take longer (like 30 seconds or even more) due to the nature of my business. These are async AJAX requests, and ...
rd1218's user avatar
  • 371
-1 votes
1 answer
26 views

The website is called before pressing enter ASP.NET Core MVC

I created new project with ASP.NET Core MVC latest version. It shows a strange behavior. My code: public class VerificationController(TimeProvider timeProvider) : Controller { [Route("email-...
Thanh Nguyen's user avatar
0 votes
0 answers
16 views

Is there a way to use the "inspectUri" property in the IIS Express debug profile?

Context: I have an ASP.NET Core MVC web app that uses Blazor WASM components. I would like to use IIS Express so my app can use Windows authentication. The inspectUri property is required to debug ...
BlueFrog's user avatar
1 vote
1 answer
94 views

How to I properly implement C# classes using ASP.NET Core MVC?

The assignment is to create an ASP.NET Core MVC web app that has a Student and a StudentWorker class. You then have the user input the information for a StudentWorker object (id, name, hourly pay, and ...
Nedmac624's user avatar
0 votes
1 answer
33 views

How to create dropdown in mvc to select object

As we can select object in angular, is there any way that I make asp.net Dropdown to select the object. I have a list in which there is Id, CountryName, CurrencyCode. I want CurrencyCode to be ...
Early Bird's user avatar
1 vote
1 answer
127 views

JWT ASP.NET Core MVC problem with authorization when check role

There was a problem with authentication, which was solved here. Now there is a problem with authorization, if I set the parameter Roles, I get an error. Program.cs: namespace MySteamDBMetacritic { ...
CriticalError's user avatar
-2 votes
2 answers
114 views

ASP.NET Core Identity InvalidUserName

I am working on an ASP.NET Core 6 MVC application that uses ASP.NET Core Identity. When I try to create a new user using the UserManager, I get this error: User name ' ' is invalid, can only contain ...
MrMustafa022's user avatar
0 votes
1 answer
56 views

Identity in ASP.NET Core 6 MVC

I am working on an ASP.NET Core MVC 6 application that uses ASP.NET Core identity and I am facing an issue trying to figure out how to work with the UserManager class. But UserManager always has null ...
MrMustafa022's user avatar

15 30 50 per page
1
2 3 4 5
995