Most voted "asp.net-core" questions
ASP.NET Core is a Microsoft framework as a redesign of ASP.NET.
Learn more…663 questions
Sort by count of
-
0
votes0
answers25
viewsCreate a web form model
I’m putting together a web page with . Net Core and I have a web form that has many fields and I was thinking about how to get all this information filled out more dynamically, I asked a question…
-
0
votes1
answer87
viewsTaking values from a form using a model
I’m creating a web form and I’ve been told here at Sopt to use a model, since I’m using . Net Core Razor. I am trying to create the model, to pass parameter but I cannot recover the values of the…
-
0
votes1
answer57
viewsError filling cascading combobox: Failed to load Resource: net::ERR_CONNECTION_RESET
I am trying to create a method to register a coefficient, this coefficient is linked to a table, which in turn belongs to a Concourse, the idea is to select the Concourse in the first combobox and…
-
0
votes1
answer32
viewsCore Entityframework called separate tables
I would like to filter a list, by the id of a Collaborator, my problem is that when returning to the list it returns everything from the bank. I need to filter for example all Projects that the…
-
0
votes1
answer76
views.Net Core 2.2 - After publishing a Webapp, the links were not working and the generated HTML code was the same as Razor
I am publishing a Net Core Webapp (version 2.2.108) on the Smaterasp.net host in "self-contained Deployment mode". My file . CSPROJ looks like this: <PropertyGroup>…
-
0
votes0
answers85
viewsReturn select Asp.net core MVC value
Good Morning, I have a question, I have an application in Asp.net core. When selecting a Dropdownlist I want to receive this value without pressing the Ubmit button, but I don’t know how to do it,…
-
0
votes0
answers114
viewsChange format Date of a JSON statement of a Controller
I have a Controller that generates an output in Json format, below indicated. The date is returning this in Json 2019-07-22T16:00:04.8579075, I want you to return 22/07/2019 16:00 { ordemChegadaId:…
-
0
votes1
answer74
viewsClear List after Request via JS Dropdownlist in Cascade
I have 2 Droplist one of Client and another of Project, after selecting the client he should receive the projects that are with Idcliente, I managed to do everything right, however when selecting…
javascript jquery mvc asp.net-core entity-framework-coreasked 5 years, 3 months ago Guilherme Palange 147 -
0
votes1
answer20
viewsHow to avoid automatic datetime field formation in Mysql with Asp Net?
I’m trying to read datetime fields with Mysql.Data.Mysqlclient, but the value that returns is always different from what is in the database, for example in this bank "2002-05-01 00:00:00.000" but…
-
0
votes0
answers61
viewsError injecting framework repository into . net core
I’m having trouble trying to inject dependency into a repository. NET framework and API . NET Core and the problem below: An unhandled exception occurred while processing the request.…
-
0
votes1
answer123
views'Iorderedequeryable<Condominium>' does not contain a Definition for 'Tolistasync'
I’m getting the following error: as in the image below: In that part of the Code: public async Task<IEnumerable<Condominium>> FindCondominiumAllAsync() { return await FindAll()…
-
0
votes1
answer75
viewsHow to map the returns of a Store Procedure to the properties of a class?
Viewmodel public class ClienteResult { [Display(Name ="intParc_Cod")] public int ClienteId { get; set; } public string Nome { get; set; } public string CPF { get; set; } public decimal Saldo { get;…
-
0
votes0
answers155
viewsDecimal with ASP.NET Core 2.2
I have an ASP.NET Core 2.2 project with the following configuration in the Startup class var cultureInfo = new CultureInfo("pt-BR"); CultureInfo.DefaultThreadCurrentCulture = cultureInfo;…
-
0
votes2
answers214
viewsHow to perform a search with an interval between one and two dates in Asp.Net Core 2.2
How to perform research with interval between one or two dates in Asp.Net Core 2.2. I have the following form below containing Start Date and End Date @using (Html.BeginForm("Index",…
-
0
votes2
answers224
viewsSave legacy data in C#
I have the following classes: public class Aluno { public String Nome { get; set; } public String Ra { get; set; } public Decimal NotaB1 { get; set; } public Decimal NotaB2 { get; set; } public…
-
0
votes1
answer43
viewsHow to replace with null or blank values
Problem: When the customer clicks to send the request the system takes the product selected and the dimensions of that product. Only not all products have box or is any other feature of the same.…
-
0
votes1
answer50
viewsInjecting Iconfiguration into Controller in Webapi project
I’m developing an API, and I’m implementing JWT on it, I made a Controller to manage the Token and Login but when I inject the interface IConfiguration and the application tells me that I have to…
-
0
votes1
answer23
viewsAreas - How to make a directory appear before Controller/Action/ on the route?
Hello. I created a web project ASP.NET MVC Core in the Visual Studio 2019 and I created an area called Managerial. Inside it, in the Views folder I created a subfolder called Products and put some…
-
0
votes1
answer81
viewsViewmodel is NULL when performed a Submit in the Main View - Asp.Net Core MVC
I have a Viewmodel (FilialViewModel) who owns a property of the type PessoaViewModel. The main view is linked to the Filialviewmodel and whenever I make a Submit, the property of the Personal type…
-
0
votes0
answers327
viewsError while doing GET on . net CORE
Good afternoon, I am studying . net core with Angular and when making a GET request I have the following error: : Microsoft.AspNetCore.Diagnostics.Developerexceptionpagemiddleware[1] An unhandled…
-
0
votes0
answers86
viewsHow to get back Task<int> of a function (Mediatr) - Asp.net Core MVC
How do I get the entire value returned through a Task? I have tried several ways, as I have seen in forums on the net, but I could not. I tried to use var customerId =…
-
0
votes1
answer94
viewsProblem when converting text to decimal in ASP.NET Core deserialization
Hello, I have an ASP.NET Core Api that takes as parameter a raw body object from the request. [HttpPost] public HttpResponseMessage DoIt([FromBody]DoItDto dto) My Doitdto class has a decimal…
-
0
votes2
answers607
viewsError add-Migration . net core 3
I am trying to add the add-Migration in my solution but always happens the following error "Value cannot be null (Parameter 'connectionString')" but my connection string is correct in…
asp.net-mvc postgresql asp.net-core asp.net-web-api asp.net-core-web-apiasked 5 years, 1 month ago Diego Wenndson Souza 3 -
0
votes1
answer599
viewsCreate a list with selected table values with checkbox
I have this código, that he catches the id selected from table: $("#tablepesquisaclientes tr").each(function (index, el) { var $linha = $(el); var checked = $linha.find('.checked:checked').length;…
-
0
votes1
answer33
viewsSend hyperlink by email - link break
I’m trying to send one hiperlink by email, however it breaks at the time of space, in the same email, I send two hiperlink, one that has no space at all, it sends correctly, but this one it breaks:…
-
0
votes1
answer51
viewsHow to compare two Viewmodel
I have the following doubt, imagine there are two ViewModel: public CustoViewModel cvm = new CustoViewModel(); public CustoViewModel custoViewModel= new CustoViewModel(); And that each ViewModel…
-
0
votes1
answer897
views"The HTTP request was Forbidden with client Authentication Scheme 'Anonymous'"
I am trying to communicate my application with the Cadsus web service from an Asp . net core application. I have using the code below, but whenever I try to recover the return of the query I get the…
-
0
votes1
answer36
viewsError deleting with Restapi and dot net core 3
Good afternoon, I am mounting an application with . net core 3 and Rest api, all my methods(get, put, post) work, but delete does not. Trying to delete generates the following error:…
-
0
votes0
answers204
viewsMy aspNet core 3.0 project does not access the DLL generated by visual basic
I received a dll generated in vb6 to integrate with my api in Asp.net Core, na dll to various calculation methods. With this, I must invoke these dll methods in my Asp.net core 3.0 project in visual…
-
0
votes1
answer49
viewsHow to assemble a foreach list at different positions
How to assemble a list using foreach to change the positioning of the image. If my Count is 1, position the image on the left side, if my Count is 2 position the image on the right side, follow my…
-
0
votes1
answer133
viewsHow to declare an image in the ASP.NET Core Model Class?
I’m following this tutorial from Microsoft:…
asp.net asp.net-mvc-5 asp.net-core entity-framework-6 entity-framework-coreasked 4 years, 10 months ago Iori Yagami 13 -
0
votes1
answer46
viewsHow to throw controller errors and capture them in an Ajax - Asp.net Core MVC request
I’m using AJAX to make a request and the return is a Partialviewresult. In the request, I am passing the personal model. Someone knows how to help me? CONTROLLER: [HttpPost]…
-
0
votes2
answers130
viewsHow to call an action as soon as the Web API starts?
I’m studying Web API and I’m having doubts about how to call an Action as soon as I click the Visual Studio play button. I imagine this should be done in the Main method of the Program class, but I…
-
0
votes1
answer78
viewsSQL gets Double with "Comma" tab instead of "Dot"
I am developing an ASP.NET application where I need to take a DOBULE typed by the user and pass to the bank. However there is a divergence of information, the DOUBLE of my bank receives separator…
-
0
votes1
answer73
viewsJS file in ASP Net Core
I created an ASP Net Core project following the MVC standard, in the project there is the folder wwwroot that contains the images, css and javascript same. In the javascript folder has two files,…
-
0
votes3
answers215
viewsProblems with connectionString in ASP.NET C# CORE
I’m new to ASP.NET with C# and have a problem accessing the information on my web.config. This is the connection tag to the database: <connectionStrings> <add name="someConnection"…
-
0
votes0
answers53
viewsEntity Framework is not saving all information from the list
I have a problem that I cannot solve in any way with Entity Framework. In this scenario I am receiving information from the front, and then I need to save it in the database, however, when I have 2…
-
0
votes1
answer200
viewsForeign key breach error only in inclusion via API, via insertion bank is correct
I have a . NET Core API that connects to a Postgres database using Entity Framework. For each table that needs to do some insertion I have the model with the right fields (created by hand because I…
postgresql entity-framework asp.net-core sql-insert foreign-keyasked 4 years, 10 months ago Ianagos 71 -
0
votes1
answer30
viewsWhat kind of data in an Application Service with 3 different tables?
I have an Application Service in ASP.NET Core that will fetch the database data from a table "Employees" that are number, name, departmentname and cityname... the last two fields I mentioned are…
-
0
votes1
answer101
viewsHow to set the change state of a checkbox switchery using Javascript and Asp.Net Core MVC
I have several checkbox switchery components that are automatically created in which I control the ID manually, in theory, a list of elements. I need to do the following: When unchecking one of the…
-
0
votes0
answers42
viewsConnect via 64 bit odbc in Sybase database
I am trying to connect to a database via Odbc, and I use the driver System.Data.Odbc. In odbc 32-bit works already, in odbc 64-bit does not. IDictionary<string, string> properties = new…
-
0
votes1
answer59
viewsProblems updating related objects using Entity Framework and Asp net core 3
Hello friends, I hope you’re all well! I’m trying to update two entities using Entity Framework core 3.0. The "Request" Parent entity that has a list of "itensPedidoVM" daughter entities and I would…
-
0
votes1
answer39
viewsHow to get the first foreign table row with Entity framework core?
I have a table of real estate and real estate photos, with the respective models: Real estate [Key] public int ImovelId { get; set; } public int? CategoriaId { get; set; } public string Endereco {…
-
0
votes1
answer31
viewsWhat is the best way to send post to register together with the child elements?
I am creating an Asp.net application with customer registration. I am creating the Create page, which has the client’s own registration fields. However, the customer can have multiple phones. Soon,…
-
0
votes1
answer1132
viewsAPI Rest ASP.Net Core 3.1 returning 404 error when published
I’m doing some testing with Apis in ASP.Net Core 3.1. In this case, I am using Entity Framework to access the database and Identity Core to register and log in users. To do so, I have implemented…
-
0
votes1
answer297
viewsStartup at . net core 2.2 and . net core 3.1
I am taking the MVC core course from developer.io, but in the course . net core 2.2 is used and I am using version 3.1. In creating a MVC project from scratch the route configuration code in .…
-
0
votes1
answer425
viewsHow to send data array to Asp.net core controller
I have a screen where I have the registration of some items, in my control I am receiving the data of the array, but it is coming empty. I already tried some options here on the forum, such as…
-
0
votes1
answer31
viewsApply filter to a list returned by a mock
Good night! I have the following scenario: A concrete class called Usersservice, which receives by injection of dependencies the repository through an interface and a notifier. She gets like this…
-
0
votes0
answers76
viewsHow to update a Partial View through a Post?
I am using Asp.Net Core Razor pages and need to avoid using Javascript/Ajax/Blazor in my code to create something like a control iterative, adding to the page a form at each button click and trying…
-
0
votes1
answer150
viewsHow to display a message in the view via a viewdata
How to create a message via a viewdata to the view? In the code below I am trying to validate if my user is null, it has to display the error on the screen for the user. Class public async…