Posts by SM_S • 125 points
20 posts
-
1
votes0
answers48
viewsQ: Upload file to Asp.net core by fetch
I’m editing the previous question. This function traverses a table with input file and plays in a formData but sent by fetch at the asp.net core is coming null function uploadFiles() { let…
-
0
votes1
answer327
viewsQ: How to create a list of Roles in Claim using ASP.NET Core
I made an authentication using Claims with cookies in the ASP.NET Core. In the Method below, the object by parameter brings the login information and inside it has a list called PerfisDeAcesso. How…
-
2
votes1
answer125
viewsQ: Null ajax values for controller
I’m getting values null on the subject by parameter no controller of asp.net core via ajax Follows the javascript with the ajax var ClienteFornecedor = { Id: "0", Tipo: $('#selTipoAdicionar').val(),…
-
-2
votes1
answer54
viewsQ: What is the best way to do a javascript with standardized messages?
I would like to make some script that returns something like MENSAGEM_SUCESSO = 'Registro inserido com sucesso'; MENSAGEM_ERRO = 'Problemas ao inserir o registro!'; Soon in some Function call these…
javascriptasked SM_S 125 -
2
votes0
answers80
viewsQ: How to map entity using Dapper with postgres
I’m having a big challenge here and I can’t seem to solve it. I’m working with DDD and on the layer of Infra esotu using Dapper When trying to execute the following code on RepositorioUsuario:…
-
2
votes3
answers271
viewsQ: I can’t do addiction injection
I’m working with ASP.NET CORE 2 and is a layered application. This is my ConfigureServices in the Startup.cs public void ConfigureServices(IServiceCollection services) {…
-
0
votes1
answer66
viewsQ: How to validate value that comes by json from php to ajax
In php I have the following return: $invalido = (object) array( 'invalido' => true ); echo json_encode($invalido); and I need to show on success of ajax asked if the invalido is true. I tried the…
-
-1
votes1
answer59
viewsQ: Error 500 when bringing many records
I’m trying to display data in a table through a foreach in the php of more than 17,000 database records, but shows HTTP ERROR 500 in the browser. <?php foreach($dados as $dado):?> <tr>…
-
0
votes1
answer22
viewsQ: Comparison between dates is not working
I searched right here and found a solution to compare dates, but for me it is not working to strtotime $dataVencimento = date("d/m/Y", strtotime($dados->VENCIMENTO)); $dataAtual = date("d/m/Y");…
-
0
votes0
answers48
viewsQ: Displaying date in incorrect language
I already tried the following code on php and it didn’t work: setlocale(LC_ALL, 'pt_BR.UTF-8', 'Portuguese_Brazil.1252'); My server apache is in a centos and is running php 7. Is displaying a date…
-
0
votes1
answer19
viewsQ: Variable with null value when calling model method
I’m working with codeigniter. By submitting a form I am sending the data to model through getters and setters. This is my input div class="col-md-6"> <div class="form-group"> <?php echo…
-
0
votes0
answers34
viewsQ: Encrypt parameter in link
I’m trying to encrypt a past parameter But it’s not working What I want to encrypt is $cc['CODIGO'] <?php echo anchor('financeiro/edicao/'.$cc['CODIGO'], '<span class="fa…
-
0
votes2
answers274
viewsA: Undefined object reference for an instance of an Asp.net object
I believe you’re using it mistakenly Page_InitComplete See what it says in the documentation: The event Initcomplete is called at the end of the page startup stage. At this stage of the page…
-
2
votes1
answer3013
viewsQ: Apache works but php does not work
Apache has been installed in a centos 7 and the service is active and php has also been installed, but whenever game in nagevador php does not run, just shows the php code. when checking the version…
-
0
votes0
answers411
viewsQ: Conversion error in oracle
I have a problem: when I run a function no problem occurs but when running in the php, this error occurs: ORA-06502: PL/SQL: Numeric or value error: Character to number Conversion error the problem…
-
0
votes1
answer24
viewsQ: Problems when displaying date in appropriate format
I have this date: <?php echo date("d/M/Y", strtotime($registro['DATA_VENCIMENTO'])); ?> is showing off like this: 15/Oct/2019 How do I display in English, without losing the formatting I put…
-
0
votes0
answers368
viewsQ: View percentage in PHP
I need to show a percentage like this 0,75 but it’s showing off like this: 0,00 follows my code: <?php echo number_format((float)$array['JUROS'], 2, ',', '.'); ?> The value that comes from the…
-
1
votes1
answer116
viewsA: Error formatting number in php
Solution: <?php echo "R$ ".number_format(str_replace(',', '.', $valor),2,',','.'); ?> Explanation: Since my initial value has a comma to separate the pennies, I needed to use the str_replace…
-
1
votes1
answer116
viewsQ: Error formatting number in php
I have this value: 47830,60 I want to leave it like this 47.830,60. For that I used the function number_format thus: number_format($valor,2,",","."); but this error returns to me: A non well Formed…
-
0
votes1
answer183
viewsQ: URL problem in codeigniter 3
I have an application on a server: http://192.168.0.200/aplicacao When I authenticate to access this error appears: The requested URL /application/auth/login was not found on this server. I searched…