Posts by e.leal.br • 356 points
13 posts
-
1
votes3
answers86
viewsA: Problems with SELECT RIGHT JOIN
I suggest the following SELECT: SELECT B.Maquina, B.Motivo, SUM(B.Total) FROM (SELECT CASE WHEN B.[descricao] = A.[pa_motivo] THEN 1 ELSE 0 END AS 'Total', A.[pa_maquina] AS 'Maquina', B.[descricao]…
-
-1
votes4
answers409
viewsA: Separate text by space except inside quotation marks
The REGEX you are looking for is this: [^\s"']+|"([^"])"|'([^'])'
-
1
votes2
answers90
viewsA: When field validation is triggered, dropdownlists do not load into Asp.net core MVC
Analyze your code well, I ended up noticing that the object passed is a PessoaFisicaViewModel, and View is signed as PessoaViewModel, apparently the PessoaViewModel does not have the properties of…
-
0
votes2
answers90
viewsA: When field validation is triggered, dropdownlists do not load into Asp.net core MVC
In this case, I have the impression that you select the values in the Send Combos to SUBMIT, but since nothing has been saved, the validation is done but the object is returned again by…
-
1
votes2
answers196
viewsA: Doubt cache Asp.net MVC
You can keep the cache, and during the insertion of a product by the customer, update the cache referring to the list of products of this client, as if it were a TRIGGER. This way the cache is only…
-
11
votes1
answer800
viewsQ: Build complex Lambda Expression
I’m trying to build a Lambda Expression that’s a little complex and I’m having difficulties. The goal is this expression: items = items.Where(x => sValues.Any(y => x.Contract_Rates.Select(z…
-
1
votes1
answer104
viewsA: Foreach result behaves unexpected
Friend, it is the way the objects are structured, these Foreachs and Ifs will be difficult to file keeping the structure of objects, what you can do to leave a little more organized is to already…
-
3
votes1
answer1251
viewsA: Free external access in sql server 2014
The most common error is mounting the wrong connection string. You happen to be adding the ENDPOINT port to the connection string? You need to copy the ENDPOINT name (something like…
-
1
votes2
answers1413
viewsA: Loop repeat jquery
Have you ever tested the jQuery selector by class? You can define specific names of the classes you want to have the functions attached and use them as selector, see: <script>…
-
1
votes2
answers775
viewsA: Problems with Web.Config
There are three Web.config settings: Web.config - Is used in any Configuration Manager (Debug/Release) situation while you are running your application directly through Visual Studio.…
-
0
votes2
answers3229
viewsA: How to do this using @Renderbody from Asp.net MVC?
I find AJAX not interesting for this solution. It seems to me that this the contents of this your side menu is directly related to the link access in the top menu. You can pass this list of side…
asp.net-mvc-5answered e.leal.br 356 -
2
votes2
answers330
viewsA: How to execute C# query for request control
You can create an Actionfilterattribute for this: public class VerificarPendencia : ActionFilterAttribute { public override void OnResultExecuting(ResultExecutingContext filterContext) { //…
-
2
votes2
answers672
viewsA: Validation model always fails
You can use the following method: Modelstate.Clear(); to clean the model state and re-run the Modelstate.Isvalid. Modelstate.Clear() performs a revalidation based on the currently populated model,…