Posts by Bruno Soares • 544 points
14 posts
-
0
votes0
answers277
viewsQ: Read static file with vuejs stand-alone
I have an application created with the default VUE-CLI configuration, and I need to read a json file from the public folder. After compiling the application with npm run build, the user should be…
-
6
votes1
answer49
viewsA: Can anyone explain to me why this mistake?
The C# is heavily typed, that is, when assigning a value to a string, for example, the value should also be a string. Try it this way: MessageBox.Show("O jogador " + jogador_atual + " ganhou!");…
c#answered Bruno Soares 544 -
0
votes5
answers258
viewsA: How to open more than one View in a controller?
The controller allows directing only to a view. But you can, no load from your view, open a new tab with javascript. In his view, add this function to a block of script: function novaaba() {…
-
0
votes1
answer29
viewsA: Parallel execution
You can create an array of tasks, and use the command Task.WaitAll to wait for all to finish. var tarefas = new List<Task>() { Task.Run(() => { // Bloco de código 1 }), Task.Run(() => {…
-
0
votes4
answers567
viewsA: How to know if the first character of a string is capitalized?
You can create a boolean variable that tells you if the first character is uppercase, and make your IF with it. bool estaMaisculo = "Teste".ToCharArray()[0].ToString() ==…
-
0
votes1
answer106
viewsA: Postman call does not enter the controller constructor with parameter
Try to change that stretch [ApiVersion("1")] For that: [ApiVersion("v1")]
-
1
votes2
answers2829
viewsA: How to add numerical values from an array?
You can use the function Reduce. console.log(this.venda.produtos.reduce((total, produto) => total + produto.preco)); More about Reduce here:…
-
16
votes3
answers10029
viewsA: innerHTML VS innerTEXT
The innerText changes the content of an element of your page (DOM) with content treated only as text. For example: document.getElementById('Teste').innerText = '<b>teste</b>' Will…
-
0
votes1
answer470
viewsA: How to count the amount of input elements within a div
You are rendering the following html: <input type="text" asp-for="PessoasContatosViewModel[i].Contato" class="form-control txt-contato" /> Your input has two classes: form-control and…
-
1
votes1
answer44
viewsA: Menu call does not enter Action
Your action has a dateFinancing Datetime parameter, but in your Actionlink you are not passing this parameter. Either remove the action parameter, or try something like this on your link:…
-
2
votes1
answer96
viewsA: Bring results from two tables (INNER JOIN error)
Simply put, whenever you use an aggregator function in your SELECT (sum, max, Count, min etc), you should put all SELECT fields that are not aggregated in GROUP BY. That way, you’re telling the…
-
2
votes4
answers4908
viewsA: What is the cost of using the Google Maps API to create routes?
Their default value is $15,000/year. Edit Google has changed its pricing policy this year, and everyone can enjoy the same table: https://cloud.google.com/maps-platform/pricing/? hl=en-BR The good…
-
6
votes4
answers1247
viewsQ: Function within another
In Javascript, I can structure my code well by placing auxiliary functions inside other functions. For example: I get something similar in C#? If not, how do you not leave the auxiliary functions…
-
2
votes2
answers205
viewsA: Language that Autodesk software uses
Good night Wesley, Unfortunately that’s information you won’t get accurately, but don’t worry because it wouldn’t make much difference knowing that. Major software like Autocad is written in a mix…