Posts by João • 172 points
26 posts
-
0
votes1
answer63
viewsQ: Convert string to a C class #
I am doing an integration with an API in SOAP, in one of the methods need to pass as parameter a value of an API class, the problem is that I receive this parameter in the format String and need to…
-
-1
votes1
answer45
viewsQ: How to popular a class with a C#string list
On the system I’m developing I send a select with multiple options to a list of string type in my controller, I now need to link this list I get from the view to the list with the login class I have…
-
0
votes1
answer40
viewsQ: Sending File to API with Authorization . Net 5
On my system, I need to send a received form file to an API that will be saved in Azure. For this submission I need to pass a Bearer Token, the part of the token I was able to do and receive,…
-
0
votes2
answers51
viewsQ: "Argued tofrangeexception" error when performing database query to return quantity of records
I have a query in ADO . NET with the aim of return the amount of records I have in the bank based on last month and year. For example, I pass the date "27/01/2021" and receive the amount of records…
-
-2
votes1
answer180
viewsQ: C# Generate random and unique number, check the database if any equal number has already been generated and if you have to generate another number again
I’m developing a system where I need to generate one random number and single and write to the bank, this system will run every day generating new numbers based on business rules. With the help of…
-
-1
votes3
answers1280
viewsA: Develop a function that concatenates elements of the same position in different arrays according to a given condition
I tried to make the code more basic, see if this would solve function filme(personagens, filmes, lancamentos, id){ if (id >= personagens.length){ return ("Essa não é uma opção válida."); }else{…
-
0
votes3
answers848
viewsQ: Return divisible by number in an array
I need to traverse an array in Javascript where I should search among the numbers of array the first number divisible by the number that the user will inform and that is non-zero. I tried to create…
-
-1
votes4
answers500
viewsQ: Return array with numbers larger than the reported Javascript
I need to return with a function all the numbers of a array larger than the one reported by the user. With the function I did here it is only returning the first number of the array, and I need to…
-
0
votes1
answer142
viewsA: Error saving Decimal value with . Net Core and Mysql
I was able to find a simpler solution by personalizing the direct culture in the startup. Follow the resolution if anyone else has the same problem: // Setting the default culture: pt-BR var…
-
-1
votes1
answer142
viewsQ: Error saving Decimal value with . Net Core and Mysql
In my project I have a field Valor of decimal type, as I set up the culture for en in my project I need to send the value with the tab ",". If I define the input as text does not accept sending with…
-
0
votes2
answers137
viewsA: Format date to dd/mm/yyyy using Datattables. Netcore
I decided to add a Dataannotations formatting the date in the Model: [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")] public DateTime DataAbertura { get; set; } DisplayFormat(DataFormatString =…
-
0
votes2
answers137
viewsQ: Format date to dd/mm/yyyy using Datattables. Netcore
In my project I’m using the library Datatables for mounting of my tables, the problem is that it is returning the date in the standard american (format I write to the database) and am unable to…
-
0
votes1
answer785
viewsA: Open partial view by passing parameter
in that part @await Html.PartialAsync("_EditUserPartial") Change to @await Html.PartialAsync("_EditUserPartial", new UsuarioModel())…
-
1
votes1
answer268
viewsQ: Registration with Modal and Partialview . Net Core 2.2
In my project I created a button for registration, which calls a modal that is inside a PartialView. The objective is to register through this modal the data informed in the database, the problem…
-
1
votes1
answer285
viewsQ: Error with modal using Partialview Asp Net Core 2.2
I’m getting the following error in my project: Invalidoperationexception: The model item passed into the Viewdatadictionary is of type 'System.Collections.Generic.List`1[Helpdesk.Models.Suppliers]',…
-
1
votes1
answer66
viewsQ: Default value in Select List . net Core 2.2
In my system I have a select which returns the recorded data in your database table, the problem is that the list already starts with the first record automatically, and I need her to return a…
-
1
votes2
answers1155
viewsA: How to convert dd/MM/yyyy HH:mm:ss to yyyy-MM-dd HH:mm:ss
I had a similar fix problem doing so: string added = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss");
-
0
votes1
answer308
viewsA: Query in . NET Core
In the form you direct to the controller with your View action: <form asp-controller="Cep" asp-action="Consulta"> In the controller you indicate that you are sending by POST [HttpPost] public…
-
0
votes1
answer286
viewsQ: Help with Decimal . Net Core 2.2 recording
I have a system in .NET CORE 2.2 where I am facing a problem in recording decimal numbers in the database MySQL. Using as an example the decimal 19.99: By MAC writes correctly; By Windows writes…
-
0
votes1
answer158
viewsQ: Help with COUNT mysql and Asp Net Core
In my system I have a form for opening calls, in which each call has the following status: Aberto, Agendado, Em Atendimento and Finalizado. I would like to exhibit in home the amount of each one…
-
1
votes1
answer449
viewsQ: Creating a modal with delete function . Net Core 2.0
Good evening, I would like help on a question of . Net Core 2.0, how can I create a modal of boostrap 4 with the delete function in the code below? My main problem is on how to recover and make the…
-
1
votes1
answer704
viewsQ: Help with Boostrap 4 side panel overlaying content
Good afternoon. I am creating a project in Aspnet Core 2.1 with boostrap 4, I added a left side menu, but it is getting above the content of my project as the print below: I would like help so that…
-
0
votes1
answer729
viewsQ: Help Update Laravel
Good evening, I’m starting to study Laravel and I came across a problem that has already taken me a few hours in search of a solution. I need to update a form, and when I give the Submit I get the…
-
0
votes1
answer1160
viewsA: How to increase or decrease the size of the css materialize datepicker?
You can edit the Materialize datepicker in your custom css by calling the class: . picker__box, ai and just set how much width and height you want. You can customize other elements inside the box by…
-
0
votes2
answers303
viewsA: How to make a page with full blocks using bootstrap?
Have you ever used Materialize? I think it best to create these types of blocks... However in Bootstrap you can distribute the cells you want inside the container of the size you want. Example:…
-
4
votes3
answers2608
viewsQ: Problem using include php different folders
First I apologize for not being able to express myself correctly, I am learning php yet and I came across the following problem. I’m setting up a site for studies and at the root I created the…