Posts by Jaderson • 179 points
14 posts
-
1
votes1
answer28
viewsQ: Why do I still have access to the current state of the object in this case? [EXAMPLE C#]
A very basic doubt, but it’s bugging my head. I have the following code snippet: A class that receives a list as a parameter in the constructor: public class MinhaClasse { IList<int> Items;…
-
1
votes1
answer50
viewsA: Button problems, codifying/decoding texts for binary numbers
Bruno, now I was able to test your code and the first thing I did was to better understand the behavior of innerHTML and innerText as well (although the second is not in your code). As there was no…
-
1
votes1
answer54
viewsA: How to filter Bados bank records in . NET Core?
You can use Linq’s methods to do this. Example: return WebPEDContexto.Set<TEntity>().Where(x => x.TipoEmpresaID == 29).ToList(); Where is only one of the many methods of Latin. I recommend…
-
-1
votes2
answers329
viewsA: How to put elements in the same line?
This happens because by default, the DIV element comes with the display: block; this causes the element to occupy a block, that is, the entire line. Playing any other content to the next line. There…
-
1
votes2
answers47
viewsA: Treat return parseint
It’s like our friend already mentioned in the comments. You are passing to your getMoney function a nodeList. This nodeList is the return of the javascript native function…
javascriptanswered Jaderson 179 -
1
votes1
answer90
viewsA: Login method that receives user data
Felipe, first of all, I do not advise you to use the "contains()" method to test login and password. This is because the contains method will find in your database any user who has such characters…
-
2
votes2
answers184
viewsA: How to access the name and address in the Customer Class, and access description and price in the Java Product Class, being in the Box Class?
Ewerton, your code is a little fuzzy, but I think I understand what you want to do. First of all, you need to pass the values to the attributes of your class using the constructor. This is the most…
-
0
votes1
answer40
viewsA: fill arraylist with arraylist attribute information of another class
John, clearly the list will come empty because you have two different instances. Your instances are: Evento ev = new Evento(); And the other instance you filled out the list is this: Evento…
-
0
votes1
answer231
viewsA: Make Even and Odd List
Create two lists. One for even numbers and one for odd numbers. Then go through your list with the go and test within it if a number is even or odd. You can do this by dividing the number by 2 and…
-
0
votes1
answer59
viewsA: Label html breaks text - fit with Bootstrap
Remove the classes "col-Sm-2" and "col-Sm-10". With these classes you are telling the label to occupy two columns of the grid and the input to occupy 10. Ideally you place the elements inside a DIV…
-
1
votes1
answer83
viewsA: Javascript checkbox, how to delete screen content when unchecking Checkbox
You can create a function in javascript that tests which element was unchecked. Example: function VerificaDesmarcado(elemento){ // Se o check não estiver marcado, removo a DIV if(!elemento.checked){…
javascriptanswered Jaderson 179 -
0
votes1
answer142
viewsA: How to assign a value to a select option (HTML element) and display data associated with that value? ASP.NET
You can do this using Javascript to catch the moment the user changes the select. The name of this event is 'onchange'. First of all it is important that in the value attribute of the option tag you…
-
0
votes2
answers32
viewsA: Print contents of an array in a tag with id, from a function that is called with an onclick
Rafael, innerHTML is usually used to execute snippets of HTML code itself. Example: document.getElementById('a').innerHTML = '<b>Negrito</b>'; The ideal in these cases is to use…
-
0
votes1
answer165
viewsA: Password validation with javascript
There are some ways to do this. I usually do it using javascript for both validation and form submission (using Ajax). So I have absolute control of which moment I can send the form and also which…