Skip to main content

All Questions

0 votes
1 answer
72 views

How to loop through Inner list of object

I have a need where I need to loop through sublist of each class. public Class A { public int IdA {get;set;} public string Name {get;set;} public List<Class B> Items {get;set;} } public Class ...
Dev's user avatar
  • 25
0 votes
0 answers
32 views

.net mvc project sdk package error: MSB4019: The imported project "../Microsoft.NET.Sdk.Common.targets " was not found

My project was working smoothly until a while ago I reopen it to find the following error when trying to build it (I'm using vs code) I noticed sdk 8.0.107 being recently updated/implemented ...
Leon's user avatar
  • 1
0 votes
0 answers
85 views

How can I improve performance and increase the speed of processing data so that it takes short time read and process 500,000 records

I'm having a .net core console application that reads parts of the JSON files stored in a folder the part of the JSON that I'm reading contains greater than 500,000 records in it, I'm able to read all ...
Janeth Jackson's user avatar
0 votes
2 answers
99 views

ASP Versioning, UrlSegmentApiVersionReader, routes match nonsense version numbers

I am using the ASP Versioning library to version an MVC controller Rest API in a microservice. using Asp.Versioning; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft....
Syntax's user avatar
  • 2,197
0 votes
1 answer
78 views

Asp.net core 8 select multiple with default selected not working after upgrade

This code for select multiple with default selected options was working fine on .netcore 5 but after upgrade to .net 8 selected options not working c# code List<int> currentContentCatIDs = ...
Ahmad Alaa's user avatar
0 votes
2 answers
56 views

Form in foreach in Razor view: Validation is shown to all the elements

Consider the following Razor code foreach(Person p in Model.Persons){ <form> @Html.TextBoxFor(m => p.Name) @Html.ValidationMessageFor(m => p.Name) @Html....
Alessandro's user avatar
0 votes
1 answer
53 views

How to initilize a class when the page is loaded. (ASP.Net Core (Razor Pages))

I am having an issue with my code where my OnGet() method isn't being called when the page loads. Now I may be wrong on how the OnGet() method is supposed to work but I cannot seem to figure out at ...
kado-kliewer23's user avatar
0 votes
0 answers
58 views

In Program.cs Uri is empty while is running

When I startup the application everything is okay. But sometime while the application is running this error appearce after an api call, it look like the problem appearce not during some call but after ...
Snuden's user avatar
  • 63
0 votes
0 answers
53 views

Attach JWT Token to ASP.NET MVC controller actions

I am busy testing solutions for a integration between multiple projects where a JWT token is stored in session storage for an ASP.NET MVC application. I am in need of the next steps I need to take as ...
MarkBerry's user avatar
0 votes
2 answers
131 views

Is it possible to have more than one ASP.NET website in the same solution?

I bought hosting from a hosting company and I learned that I can only run one ASP.NET project on my hosting. Can I create multiple ASP.NET applications within one ASP.NET project? So what I mean is ...
Hulusi Şimşek's user avatar
0 votes
0 answers
38 views

Why is my razor view not sending the users input data to the action method?

I have created an application for an online book store. I have decided to use Firebase for the authentication and have now ran into an issue with the login and register view where both the views do ...
Pineapple_pizza's user avatar
0 votes
0 answers
30 views

Visual Studio only has .NET 4 templates available

When I create a .NET project Visual Studio only gives me .NET 4 supported templates I've tried re-installing Visual Studio and .NET as well as updating and modifying the installations. I'm using the ...
TheHollyRoller's user avatar
0 votes
0 answers
29 views

C# - Entity Framework: How to query ignoring case and diacritics [duplicate]

How can I make a query on DB using Entity Framework (v7.0) ignoring case and diacritics? I want to receive a parameter and ignore case and diacritics on the comparison. I have tried: expenses = ...
Daniel Sampaio's user avatar
0 votes
0 answers
118 views

Could not load type 'Microsoft.AspNetCore.Mvc.MvcJsonOptions' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json

This is a .NET Core 2.2 project upgraded to .NET 8.0. I am getting the error shown here. I am using the Upgrade Assistant in Visual Studio 2022. The same issue occurs if I am upgrading to .NET Core 3....
Manoj Pruthi's user avatar
0 votes
1 answer
32 views

Input type="file" for each record within a single form is always null ASP.NET MVC Razor

I have a form that based on various options such as order cost, etc.., will generate a list of required documentation. This list would allow the end user to upload the appropriate file and then click &...
user3275950's user avatar

15 30 50 per page
1
2 3 4 5
38