Posts by Victor Moraes • 319 points
18 posts
-
0
votes1
answer26
viewsQ: How to catch the table scroll event?
I have a table with the following structure: <table id="tab-grid"> <thead></thead> <tbody></tbody> </table> and need to trigger Trigger javascript below when…
-
0
votes1
answer76
viewsA: Concatenate two variables into one using LINQ
Response to the problem presented: On the line where the Select, concatenate pessoa.CPF with pessoa.CNPJ using the sum operator +, assigning concatenation to a variable created right there, in the…
-
1
votes1
answer76
viewsQ: Concatenate two variables into one using LINQ
Through LINQ I make a query in the database in the fields CPF and CNPJ table People and need to assign these two table fields to a single variable Document to display on screen. According to the…
-
1
votes1
answer62
viewsQ: Error calling ajax function
I have gotten an error calling an ajax function contained in a file. js separate from my .html. file The same does not occur when I insert this javascript function into my html file. The function is…
-
-2
votes1
answer32
viewsQ: Error comparing database data with empty form field
I need to check if there is already a registered document number not to repeat it. However, the field Document allows null, so there is an error when comparing a database value with a null value of…
-
2
votes1
answer31
viewsA: Error when performing query with Linq Groupby in C#
Response to the problem presented: Include a condition that you do not consider when the field Group contain a null value. .Where(p => p.Grupo != null) OrigemDados = new OrigemDados(…
-
1
votes1
answer31
viewsQ: Error when performing query with Linq Groupby in C#
I need to select the Groups previously registered, bringing data not repeated. However, an error is returned when performing the query in the table Point of Attendance, where the countryside Group…
-
0
votes2
answers185
viewsQ: Javascript function is only triggered after 2nd button click
When you click on a button to delete an item from a list using Javascript, it only executes the action after the 2nd click. I would like to know what I must do to make the function work correctly…
-
1
votes1
answer214
viewsQ: Field validation problem in ASP.NET Core
The field Unit Value accepts only 3 digits after the comma. I need it to accept 4 decimal places. I wonder what might be causing this restriction regarding the formatting of this field. The code I…
-
1
votes3
answers641
viewsA: What is Unobtrusive Javascript?
Still, to complement the knowledge base on the subject: Non-intrusive javascript (unobtrusive javascript) suggests that HTML code be separated from javascript code, bringing organization,…
-
0
votes3
answers621
viewsA: Change Asp.Net Core version
Felipe, you can install the other version you need next to the current version. If your project does not run in v3.0, then it will run in v2.2. One installed version does not impact the operation of…
-
1
votes2
answers121
viewsQ: How to format decimal numbers using Fluent API in the Entity Framework?
How to create a formatting with precision 10,4 (4 decimal places) to save decimal data to SQL Server? This format description goes inside the modelBuilder, however, I have not found any code already…
-
6
votes3
answers641
viewsQ: What is Unobtrusive Javascript?
What is Unobtrusive Javascript and what its differential when writing Javascript functions in the HTML document?
-
4
votes1
answer236
viewsA: Gitignore, Ignore a file without deleting it from versioning
This is because you are already versioning this file, and it is already in your remote repository. What you can do is: Save the contents of this file to a notepad. Delete this file from your project…
-
-1
votes1
answer67
viewsQ: Problem when correctly rendering a select HTML
I have the following tag select: <select asp-for="@Model.EstadosServicos" asp-items="Html.GetEnumSelectList<EstadoServico>()" id="tipo" class="form-control"></select> that creates…
-
0
votes1
answer58
viewsQ: How to show a message on the screen if there are no records to be brought from the database?
I want to show a message on the screen instead of showing an empty table. How do I implement this logic in index.cshtml? @page @model xxx.xxx.Pages.Servicos.IndexModel @{ ViewData["Title"] =…
-
-2
votes5
answers5647
viewsA: What is the orthogonality?
In computer science, orthogonality in programming language design is the ability to use various language resources in arbitrary combinations with consistent results. The number of independent…
terminologyanswered Victor Moraes 319 -
0
votes1
answer59
viewsQ: Change the status of a record in the database by ID via post method
I need to change the status of an object registered in the database, from the ID of this object, once I click the corresponding button. How do I move on to my role in controller the ID of that…