Posts by Carlinhos • 533 points
18 posts
-
0
votes1
answer84
viewsQ: How to bring all items that have no reference with a given table [SQL]
I am using Nhibernate to make a query in sql in C#, but I have a doubt. I have the following structure: public class Pessoa { public long Id {get; set;} public string Nome {get; set;} } public class…
-
0
votes0
answers94
viewsQ: What is the best approach currently to handle user permissions in ASP.NET Core?
I am currently working on a project with aspnet-core and do not have much idea how to proceed to handle user permissions. I even have an idea of how I can do it (and I’ve done it), but I don’t know…
-
3
votes1
answer289
viewsQ: How to ignore files according to their extension in TFS?
In git you can use the file . gitignore to ignore some file extensions, but would like to know if this can also be done in Team Foundation Service or if there is something similar to ignore files…
-
0
votes0
answers275
viewsQ: How to capture the body value (Stream) of a request without deleting it?
I’m trying to capture the body of a request in an authorization class (Authorizationhandler), but because this body is a Stream, after reading its contents the post request that comes next can not…
-
2
votes1
answer1314
viewsA: Angular2 - Inject Component to Body
Well, for you to inject this component inside another it is necessary to use an angular2 Feature that can be observed in detail in this link of the official website. To compile the component you…
-
1
votes2
answers219
viewsA: Angular2 Child Routes
You can return using the command history.back(); which I believe is not the best way, or using this._router.navigate(['../'], { relativeTo: this._routeParams }); which in my case works, but my route…
-
9
votes3
answers2573
viewsQ: How to use constructor overload in Typescript?
In languages with C#, for example, it is possible to use constructor overload as shown below: public class Teste{ public Teste(bool a, int b, string c){ } public Teste(bool a, int b){ } public…
-
3
votes2
answers80
views -
4
votes1
answer2357
viewsA: Hide and Show DIV based on SELECT response
Explanation: To leave the div .dadosLoja hidden, I put her as display:none;. When an option is selected and this is different from "Select" the javascript changes the display of the div .dadosLoja…
-
4
votes3
answers4280
viewsA: Fill in the input text value via checkbox
A simple way to do this is with javascript. I added an input with the id="resultado" to use in javascript and created the Function add that receives value as a parameter. Obs: It’s simple but it’s…
javascriptanswered Carlinhos 533 -
0
votes1
answer130
viewsA: The width of my site is not equal, header is smaller than the rest. How to resolve?
To solve your problem I added a div with the class="row" around the header. Thus remaining: <body> <div class="container"> <div class="row"> <header> I did this because I…
-
2
votes3
answers2921
viewsA: Show and hide content in Javascript (Menu)
I just added the submenu id to div content, I started with display:none and implemented Javascript. Using pure javascript would be like this: function acao(){ var submenu =…
-
1
votes2
answers89
views -
1
votes3
answers4254
views -
0
votes2
answers1474
viewsA: How to change the color of a tr according to the data of a td?
After creating the question I did a quick search and managed to solve the problem using the jquery’s Closest() method, thus: $('.tr-child td:nth-child(4)').each(function(index, element){…
-
3
votes2
answers1474
viewsQ: How to change the color of a tr according to the data of a td?
I have some tr in the table that contains the tr-Child class and I would like to change their color when the value of the fourth column of that tr was > 0. This is possible with jquery ? had…
-
1
votes2
answers3006
viewsA: How to capture the first letter of a String name and if the letter is 'C' save the name in an array?
to remove the null you just need to change the time when the variable total is incremented: for(int c = 0; c < soC.length; c++ ){ System.out.println(" Digite o seu nome:"); nome = sc.next();…
-
1
votes3
answers1367
viewsA: How to inform that a particular store is open at that time
As our friend has already said, it is not very advisable to take the time in the customer’s machine because it can be modified easily. Below is the code you need: $(document).ready(function() {…