Posts by Peres • 382 points
17 posts
-
0
votes1
answer50
viewsA: how to make a loop with javascript prompt?
Follow an example using while: function GetPessoas(){ let pessoas = []; let registreOutraPessoa = 'S'; while ( registreOutraPessoa !== 'N' ) { let nomePessoa = prompt('Digite o nome da pessoa ');…
-
0
votes0
answers56
views -
-3
votes2
answers89
viewsQ: How to iterate on a model in C# with variables that have number?
I have a model that was made by another developer where it has several fields like this: . . . Teste() teste = new Teste(); teste.campo_1 = 1; teste.campo_2 = 2; teste.campo_3 = 3; teste.campo_4 =…
-
2
votes1
answer111
viewsQ: How to print the name of the method, file and line that was called?
Example: file name: teste.cs A part of the code: ... public void MeuMetodo() { // suponha que essa linha seja a 100 Console.WriteLine("Arquivo: " + arquivo + "Metodo: " + metodo +" linha: " +…
-
-1
votes3
answers314
viewsA: Help how to take the last word of a string and add it to the top using java
Use lastIndexOf and then substring Follow some examples: https://www.tutorialspoint.com/java/java_string_lastindexof.htm https://www.tutorialspoint.com/java/java_string_substring.htm Examples:…
-
-2
votes1
answer1161
viewsA: How to save a PDF file to the database and make it available for download?
You can save any file to an sql database using a varbinary column(max). Just create a method that converts the file to binary and save to DB, and then to read it just do the reverse.
-
4
votes2
answers88
viewsQ: What is the Creation proxy for in the Entity framework?
What is the purpose of disabling this feature?
-
1
votes0
answers44
viewsQ: How to recognize a phone number using xml grammar?
I’m using nuance to recognize voice in calls, I need to pick up the person’s phone to validate the registration, how to do? For example, if the person says 95 (ninety-five) - I’m getting 90 - 5 and…
-
8
votes2
answers927
viewsQ: What’s the difference when creating a class libray (.net framework) and class library(.net standard) project in VS2017?
What are the differences and uses of these types of projects?…
-
2
votes3
answers9910
viewsA: Remove first and last character from a string
Follows: String myStr="[wdsd34svdf]"; System.out.println(myStr.substring(1, myStr.length()-1)); Source: https://stackoverflow.com/questions/8846173/how-to-remove-first-and-last-character-of-a-string…
-
0
votes2
answers46
viewsA: Doubt with data return Asp.net API
In your code 'Inseriusuario', it seems to me that is missing the 'context.Savechanges()' or 'context.Savechangesasync()'. Another thing, is returning this method as 'string' - better change to…
asp.net-mvcanswered Peres 382 -
1
votes0
answers56
viewsQ: How to return the difference of a C# matrix without using LINQ?
I have a matrix A and B: Method: public static int[] RetornaDiferenca(int[] a, int[] b) {... } Calling the method: RetornaDiferença(new int[] {1, 2, 2}, new int[] {2}) The result would have to be:…
-
0
votes1
answer1213
viewsQ: How to use Asp net core 2 in the visual studio 2015 community?
I installed . NET Core 2.0, but when I create a new project in Visual Studio 2015 there is no option to choose Asp net core 2.0. It can be used in VS 2015?
-
0
votes3
answers134
viewsA: How not to let the user click more than once on javascript button
What you can do is by clicking the button, change the 'disabled' property of the button to 'true': Example: Document.getElementById("myBtn"). disabled = true; Source: Button disabled Property…
-
1
votes1
answer607
viewsQ: How to open a local file with Xamarin?
Using Xamarin with Visual Studio and C#, I made an Android application and am creating a player using VideoView. I wonder how to access the mobile folder that contains the video. For example:…
-
0
votes0
answers55
viewsQ: Why do video buttons not work in browsers after using css?
I’m making an application that displays a video on the site with Nodejs, socket io, express. Only has 1 page tagged <video>. I want the video when clicking on play to be in full screen,…
-
5
votes2
answers56
viewsQ: Why is it that when I delete or edit the record from table x it is also removed from table y?
I have a system in ASP MVC with C# using Entity framework. I have the table Pedidos and Agenda. On the table agenda I have a column with the id of the request. When the order is canceled, I have to…