Posts by Adjair Costa • 500 points
16 posts
-
0
votes2
answers814
viewsA: Simulate Automatic Click when loading HTML page
Try this, you can take the click event: document.onload=toggleFullScreen();
javascriptanswered Adjair Costa 500 -
2
votes2
answers516
viewsA: Can I run a Reactive Native app on Iphone through Windows?
Hello, is possible yes, access: https://expo.io/ , follow the instructions and you will get to see your app on your iphone running inside the expo app that you should also download on your iphone.…
-
-1
votes3
answers418
viewsA: C# - No argument provided that corresponds to the required formal parameter in abstract class code
public abstract class Funcionario { public int numeroRegistro { get; set; } public string nome { get; set; } public decimal Complemento { get; set; } // 1º construtor public Funcionario (int…
-
6
votes2
answers348
viewsA: Should or should not Httpclient be used within a using block?
HttpClient client = new HttpClient(); static async Task Main() { try { HttpResponseMessage response = await client.GetAsync("http://www.contoso.com/"); response.EnsureSuccessStatusCode(); string…
-
1
votes4
answers81
viewsA: Query with Javascript
Hello, follow reply using native function "filter" as requested. It gets more elegant and easier to understand. Note: Your candidate array had a syntax error that I corrected. var vaga = {…
javascriptanswered Adjair Costa 500 -
2
votes1
answer154
viewsA: I can use two Insert into in the same command
Yes, I do that a lot. besides separating values with "," you have to have exactly the same amount of parameters as all values sequences, e.g.: insert into my_table (coluna1, coluna2,coluna3) values…
-
0
votes2
answers148
viewsA: Open connection more than once in C#
at the end of each function, you can terminate the connection to the database regardless of error or not, use the Finally block{}: public int VerifyStatus30(List<Class.ReturnTableName>…
-
7
votes2
answers260
viewsA: Search with case insensitive
being the parameter "query" its search criteria, follows suggestion: just put the query.toLowerCase(), thus, regardless of the way the search criteria is informed, both will be compared with…
-
2
votes2
answers641
viewsA: Validate if informed date is less than the current Avascript
following answer: var dtVenc = '23/10/2018'; /* Aqui recebe a data String do Json*/ function retornaData(data) { if (!data) { return data; } split = data.split('/'); return new Date(split[1] + "/" +…
javascriptanswered Adjair Costa 500 -
2
votes1
answer378
viewsA: How to redirect user to a specific page after login
In the method Login in your controller, you have a parameter called ReturnUrl. By calling this method, you can pass the url you want to redirect the logged in user. Note that, in this section, you…
-
1
votes1
answer444
viewsA: Fill vector with Textbox in C#
Hello @endrew_lim, note that in every click you instantiate the object int[] arr = new int[5];, when instantiating this object it initializes empty, then you include a value and when printing always…
c#answered Adjair Costa 500 -
1
votes1
answer138
viewsA: Scroll Infinity ASP NET MVC C#
Rafael, make paginated query in the database, if you are using Sql Server, from version 2012 the model is this: select count(1) over() as total,column1,column2 from mytbale where 1=1 group by…
-
0
votes2
answers70
viewsA: Error passing JSON arguments
Henry, look at this Mongodb documentation on Objectid: official documentation link: Mongo DB documentation var Db = require('mongodb').Db, MongoClient = require('mongodb').MongoClient, Server =…
-
2
votes3
answers635
viewsA: Add data from array
see if this solution helps you: var dados = [{ "produto": "arroz", "peso": "5", "preco": "15.90", "total": "" }, { "produto": "feijão", "peso": "3", "preco": "5.90", "total": "" }]; var new_dados =…
-
1
votes2
answers58
viewsA: Exchange array data between’S' and 'N'
Hello, I have another suggestion, see if it answers: var array = [{ "nome": "1", "faltou": "N", "goleiro": "N", "pago": "N" }, { "nome": "2", "faltou": "N", "goleiro": "N", "pago": "N" }, { "nome":…
-
2
votes1
answer89
viewsA: Space identification in TXT Asp.net file
It’s simple, just add the line break characters, "\r\n", before each item of the foreach, follows code: string[] linhas = System.IO.File.ReadAllLines(@"C:\Users\aless\Desktop\txt\frases.txt");…