Posts by Hudson Medeiros • 527 points
26 posts
-
0
votes0
answers18
viewsQ: Regex for AFD files
Good morning I have a Txt file with a series of lines that divide the point beats that we have here in the company. Each line of this can contain the hit information, such as the time and…
-
0
votes0
answers35
viewsQ: C# - Cascade Repeat Structure
first good morning! I have a task to feed a "file tree (windows explorer style)" in object format. For this I have initially a method that lists all the files and folders in the directory root of…
-
1
votes2
answers190
viewsQ: Align icons and text on button
I would like to have my icons (Svgs) and text aligned within the same "container" of my navbar using flexbox, but I’m not able to use the correct rules. The closest I could get is reported in the…
-
1
votes1
answer1119
viewsQ: JWT Token Refresh
I have an API that issues a JWT token with a maximum validity of 2h per token, after which it is no longer processed by my application. I need that every time this token is expired, a new token is…
-
1
votes2
answers80
viewsQ: C# - Loop no while
I have a C# function that checks if a download has been completed by referring to whether the file exists .crdownload is true. If this does not exist, I assign a true boolean to the while variable,…
-
1
votes2
answers59
viewsQ: Average between select results
I need to calculate the average repair time for each application. Knowing that I have in hand the repair code, application code and time for each repair, what would be the best way to perform this…
-
0
votes1
answer182
viewsQ: 'System.Data.Sqlclient.Sqlconnection' does not contain a Definition for 'Query'
I wrote a C# method to make a "switch" between different database types in my application. Where the problem is that each database type makes use of a different library (SQL => Sqlconnection and…
-
11
votes2
answers252
viewsQ: Difference between instantiating class and using
I can instantiate a class in two ways in C#, they being: HttpClient http = new HttpClient(); or using (var http = new HttpClient()) { // } Is there any difference between these means? Performance?…
-
1
votes0
answers569
viewsQ: Post with JSON - Httpclient C#
I need to do a Postasync in my web-api, passing a JSON as parameter. I tried it as follows, but I have not had success so far... Regardless of the structure of this JSON, I get a Bad Request when…
-
1
votes1
answer46
viewsA: Deserialize JSON with Newtonsoft JSON
// RESOLVED! // The only change in the code I made was in the class structure, which with the change became: public class Empresa { public class Produto { public List<result_classe> result {…
-
3
votes1
answer46
viewsQ: Deserialize JSON with Newtonsoft JSON
I am trying to make an deserialize, to create a list with the contents of this JSON. However, everything arrives to the list as null. I’m gonna let down what I’ve got so far. I have the following…
-
2
votes1
answer83
viewsQ: Print Owin Identity Projects
How I can print all different types of claims that I created during my Owin Identity authentication? I’m using @User.Identity.Nome to be able to print only the name, I can’t access the other keys I…
-
0
votes0
answers80
viewsQ: Difference between If with and without keys
I was following some courses of Nodejs, and I realized that in many of the cases is used a if more basic than traditional (I come from C#). My question is the following: Is there any difference…
-
2
votes0
answers288
viewsQ: Send view value to C# ASP NET MVC controller
I need to pass an ID of a forach inside a form of my view to the controller, but I couldn’t find the best way to do it. I tried to call a Hiddenfor with the ID in the foreach or call the value by…
-
1
votes1
answer2372
viewsQ: Bootstrap 4 Multilevel Dropdown
What’s the easiest way to put a multi-level dropdown on my navbar made with Bootstrap 4? I tried some methods on the Internet, but everyone uses ul, my navbar already uses div's. Example:…
-
0
votes1
answer184
viewsQ: Sequential update SQL
I have a table SGI01A in my database, where a column of records follows the following logic: At some point, this ordination went out of order and began to count in a "wrong" way. What was to be…
-
2
votes3
answers653
viewsQ: When to use if or Else If?
It’s a pretty silly thing, but during my writing I came across the following question: When is it really necessary to use if's or else if's in my code? Is there any impact on performance? I will put…
-
1
votes1
answer107
viewsQ: Feed from the list c#
I have a list in my code that is fed as follows: string Recursos = "E-mail, Desktop, Datasul, Aptus"; string[] RecursoArray = Regex.Split(Recursos, @"\W+\s+"); List<Ti01> ListaRecursos = new…
-
1
votes2
answers157
viewsQ: Align button inside Alert
The needing leaves a button lining inside the boostrap "Alert" element. I tried to do this with the "pull-right" class, but half the button is outside the element. Someone can help me? <script…
-
1
votes1
answer272
viewsQ: Different forms on the same line
I have two forms in my code, and HTML gave a line break between the two. I would like both to be printed side by side, to save screen space. I’d like to know how to do this using CSS or Bootstrap 3.…
-
-3
votes1
answer75
viewsQ: If no search by value
There is a snippet in my program that looks for a specific string to assign a value to some variable. However I am not able to run these parameters inside the "If"... Debugging goes through this.…
-
1
votes1
answer623
viewsQ: onClick fill in input
I wanted to make a menu of options (Buttons) on my site, and when clicking on them is loaded a value to the input. I tried to make a script that when clicking the button, the field below was filled…
-
0
votes2
answers66
viewsQ: Prevent user to change field before completing
In some specific forms, I want to validate if user has completed the field in full. Should he come out of input, an alert on the screen is displayed, and then the focus goes back to that field. I…
-
1
votes4
answers114
viewsQ: Hide a DIV based on the value of a field
Good afternoon, guys! I’m trying to hide a DIV in my code based on the value a field on my site returns. If its value is contained in "Accident", the DivAcidente must be displayed. If any other…
-
4
votes3
answers91
viewsQ: Sort by SQL numbering
I have a table with columns ID and ReqNorma filled with a following standard: When I perform the query to filter them, I receive values that are not in order because some of them were registered out…
sqlasked Hudson Medeiros 527 -
1
votes1
answer631
viewsQ: Run javascript on my Chrome extension
Speak guys! I work most of the time filling web Formularios, and often caught about 50-100 pages with the same data... So I have to manually fill out one by one. I came up with the idea to create an…