Skip to main content
0 votes
0 answers
57 views

ASP.NET Core MVC : In-Memory cache data with IQueryable

I am new to C# and trying to cache the data in memory, but keep getting the error. Currently, I have this code below and it works fine without cached data. public async Task<(List<v_ListView>,...
Milacay's user avatar
  • 1,535
0 votes
0 answers
16 views

ASP.NET Core MVC : view with Angular 19 component disappearing URL

I am using the Angular 19 Full Calendar component. I have a dedicated Angular Workspace I use to develop the Angular component, I am using ng build --configuration development to deploy the component ...
Enoch_Root's user avatar
-1 votes
0 answers
38 views

Solution with several projects: Found multiple output files with the same relative path [duplicate]

I have a web application solution with multiple projects. The fact is that each project have some views whose names are the same. That is by design and cannot be changed. When compiling, I get this ...
jstuardo's user avatar
  • 4,306
0 votes
1 answer
54 views

Entity Framework and database

I'm working on an EF project. This is my entity: namespace AnagraficaEF.DA { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System....
MICHELE TROTTA's user avatar
1 vote
1 answer
59 views

Unable to validate employee number format in ASP.NET Core MVC teacher management system

I'm a complete beginner to C# and ASP.NET Core, working on assignment to build a teacher management system. I'm trying to implement validation for employee numbers, which must start with "T" ...
Anna Charbadze's user avatar
0 votes
0 answers
65 views

Is it possible to host a .NET application that is inside a docker container on IIS?

I have an application built with .NET 8 and MySQL 8.0 inside on docker container, and I need to deploy this container on IIS so that each user can access it via IP on the local network. My question is:...
Eduardo Ramos's user avatar
-3 votes
1 answer
45 views

ASP.NET Core MVC : entity adding row not saving [closed]

I have the edit code calling. The code in the controller: [HttpPost] public IActionResult Edit(CustomerEntries obj) { if (ModelState.IsValid) { _db.CustomerEntries.Update(obj); ...
Privesh's user avatar
  • 653
0 votes
1 answer
49 views

Bootstrap in ASP.NET Core MVC

I am creating an ASP.NET Core MVC app. It has on default bootstrap files in the wwwroot folder. My _Layout file looks like this: <!DOCTYPE html> <html lang="en"> <head> ...
Fer's user avatar
  • 9
0 votes
1 answer
74 views

How to use cache busting with WebOptimizer?

I am using the LigerShark WebOptimizer library (GitHub link) in a .NET 9.0 MVC application. I want to enable cache busting, but whenever I do so, I encounter some difficulties. I find that the ...
Alex's user avatar
  • 1,730
0 votes
1 answer
28 views

How to use CORS to disable X-Frame options, ASP.NET Core MVC

I have an ASP.NET Core MVC app that has an Information Request form I want to use. I want to access this form from an external site, which is hosted by a 3rd party vendor. I am accessing the page ...
GroupPlay's user avatar
0 votes
0 answers
22 views

Indexing a collection in CSHTML in ASP.NET Core MVC [duplicate]

I have the following Entity Framework tables: ChildFile: - Id (PK) - ParentId (FK) - FileName (string) - [NotMapped] FileEntry (IFormFile) Parent: - Id (PK) - ChildFiles (ICollection&...
Sky's user avatar
  • 1
0 votes
0 answers
21 views

C# MVC asp.net core, wouldn't load Views after changing path [duplicate]

I have my MVC asp.net core project, it normally worked with structure ProjectName/Views/Main/index.cshtml, but after changing it to ProjectName/Web/Views/Main/index.cshtml, it won't load my views. In ...
user29988285's user avatar
1 vote
2 answers
127 views

How to make named routes in Asp.Net Core Razor Pages

I'm facing an issue. My Razor Pages app has a huge number of pages with many links to other pages, like: <a asp-page="/some-page">Go to some-page</a> I wondered: if I change the ...
TheMakarik's user avatar
1 vote
0 answers
27 views

Issues with Implementing "Remember Me" functionality in ASP.NET Core 8 MVC

I am working on an ASP.NET Core 8 MVC app and trying to implement a "Remember Me" functionality in the login action. However, when I add these lines of code: var claims = new List<Claim&...
Zahab Abbas's user avatar
0 votes
1 answer
42 views

Best practice for nested view models in ASP.NET Core 8?

I'm pretty new to web dev and have a question about how to best structure the project in currently working on. The project uses Entity Framework and ASP.NET Core 8 MVC. In my database I have the ...
Landon's user avatar
  • 538

15 30 50 per page
1
2 3 4 5
1016