Posts by Julio Soares • 525 points
23 posts
-
0
votes1
answer24
viewsA: Azuread and Identity authentication in the same Project
After some research, I arrived at the following solution: Documentation:…
-
1
votes1
answer24
viewsQ: Azuread and Identity authentication in the same Project
Applying: Built in . NET Core 2.2 Is it possible to have two forms of authentication in a single C# project? I found myself in the following scenario: 1 - Users who are employees of the company use…
-
2
votes2
answers1980
viewsA: Generate Inserts from a populated table
It is also possible by Managment Studio (SSMS)... Right Click on your Database and Go to Tasks -> Generate Scripts Specify the tables you want to export. After this, click Next. Under Set Script…
-
1
votes3
answers66
viewsA: Modify element through Javascript and "warn" page that element has been modified
Fire a Rigger instead of the Blur()... $(document).ready(function(){ $("#myTextarea").change(function(){ alert("text area changed"); }); //$("#myTextarea").keydown(function(){ //alert("text area…
-
1
votes1
answer108
viewsQ: Where Dinâmico no Linq to Entities
Expensive, I need to perform a dynamic Where, in a Linq to Entities. I researched some solutions but none could accomplish what I need. Until then, I have the following switch: public…
c#asked Julio Soares 525 -
1
votes2
answers37
viewsA: Check link depending on content starts query
Make a condition to call the Oader... $( "a" ).click(function() { if($(this).attr("href") != "javascript:;" && $(this).attr("href") != "#") { $( "#loader" ).fadeIn( "slow" ); } }); #loader{…
-
2
votes2
answers120
viewsA: Division greater than R$999.00 results in Nan. How to format correctly
Remove the points from the thousand $(document).ready(function() { var demo1 = $('span.ecwid-productBrowser-price-value'); demo1.each(function() { var valor1 = parseInt(this.innerHTML.replace(',',…
-
3
votes3
answers759
viewsA: The null value automatically becomes 0
You can also set the value of the KM field to 0, as default in SQL SERVER. To do this, go to the Design of your table, select the KM field and set the Default Value or Binding to 0…
-
1
votes4
answers1722
viewsA: How to recover a value from within a tag in XML?
You can use the query()... declare @XML xml set @XML = '<vol><qVol>3</qVol><esp>VL</esp><pesoL>43.000</pesoL><pesoB>43.000</pesoB></vol>'…
-
2
votes4
answers2146
viewsA: SQL - Draw random lines
Can be done with ROW_NUMBER() as well... SELECT ORDEM, RODADA FROM ( SELECT ORDEM, RODADA, ROW_NUMBER() OVER(PARTITION BY ORDEM ORDER BY NEWID()) AS ROWORDER FROM #TMP_RODADAS ) TEMP WHERE ROWORDER…
-
3
votes4
answers14424
viewsA: Validate form before sending
The fields of your form and the form itself do not have the id attribute, required to use . getDocumentById("algumid"). Your function should also return false if there is an error in the…
-
1
votes1
answer746
viewsA: split 1 column into 2 in sql server giving update
Try this script... CREATE TABLE #TMP_CIDADES ( [MUNICIPIO / UF] varchar(max) NOT NULL ) INSERT INTO #TMP_CIDADES ([MUNICIPIO / UF]) VALUES ('CANDÓI-PR') INSERT INTO #TMP_CIDADES ([MUNICIPIO / UF])…
-
4
votes2
answers116
viewsA: How to use a tag property, using Jquery
Try it like this: $("#selectTeste").on("change", function () { var ExigeIdade = $("#selectTeste").find(":selected").attr("exigeIdade"); atualizaProfissional(ExigeIdade); });…
-
1
votes2
answers402
viewsA: How to select records in an Auto-referenced table using Recursiveness?
See if that’s what you need... WITH ArvoreAreas AS ( SELECT IdArea ,IdAreaPai ,1 as Level ,CAST(Nome as varchar(max)) as Nodes ,IdArea as IdentificadorUnico FROM Areas WHERE IdAreaPai is null UNION…
-
1
votes1
answer2499
viewsA: Generate Credit Card Token
Pagsegurodirectpayment.createCardToken is used to generate the Token you need to perform a transaction on Secure Pag. In your example, you did not create a function for callback Success. See below…
c#answered Julio Soares 525 -
0
votes3
answers1452
viewsA: How to create a category tree in C#
I think the secret here is more in the BD query than in C# itself. In SQL SERVER (which seems to be the case) I go with a CTE. Here is an example just by writing the output hierarchically, but I…
-
2
votes1
answer93
viewsA: ASP.NET C# Dropdownlist doubt
This is a way out for those who use Webforms... HTML of the Form <form id="form1" runat="server"> <div> <asp:DropDownList ID="ddlOcorrencias" runat="server"…
-
2
votes4
answers239
viewsA: Ignore class name in XML serialization
Directly with Xmlserializer, you won’t be able to. An alternative is to treat XML with Xmldocument methods after serializing with Xmlserializer. //Instancia as classes Endereco e = new Endereco();…
-
3
votes2
answers649
viewsA: Sort a Multidimensional array by column c#
Arrays ??? Makes a class my boy ! public class Classificacao { public Classificacao() { } public Classificacao(String Piloto, Int32 Pontuacao) { this.Piloto = Piloto; this.Pontuacao = Pontuacao; }…
c#answered Julio Soares 525 -
0
votes2
answers260
viewsA: Call in API does not work
You probably need to add the Header to CORS from the server side (where json is generated at the url you posted). In C# for example, I use Response.AppendHeader("Access-Control-Allow-Origin", "*");…
-
0
votes2
answers931
viewsA: Redirect file to URL via . htaccess
Try: Rewriterule (.*) http://site.example.com/%1 [R=301,L] Extracted from: https://stackoverflow.com/questions/7497233/htaccess-rewriterule-for-subdomain…
-
0
votes2
answers180
viewsA: Change of object in inheritance
You look like a polymorphist. Although they both inherit Functionary, the class Coordinator, shall not have the same specific Coordinator roles and vice versa, except the Employee-sharing…
-
2
votes1
answer161
viewsA: Import data via SSIS or C#?
It depends my dear !. If you use today Bulk Insert to load a certain table, I see no problem. The SSIS or any other ETL tool such as Datastage is welcome when the need for data transformation (for…