Posts by Emerson Dias dos Santos • 85 points
11 posts
-
1
votes1
answer313
viewsA: Dataannotation validation displaying message in English
This happens by simply answering, because the configuration of your local IIS is in Portuguese and your remote IIS is in English. To change this globalization setting of your IIS you must add the…
c#answered Emerson Dias dos Santos 85 -
1
votes1
answer795
viewsA: How to enable CORS for web page access from a different domain, in Asp.Net MVC
For this you must install an extension package that makes this treatment of CORS. In the NUGET console type the following command: Install-Package Microsoft.AspNet.WebApi.Cors In your Webapiconfig…
-
1
votes1
answer100
viewsA: Subtraction between two fields of the same value does not give zero-SQL Server
This happens because the decimal pattern of SQL Server uses '.' instead of ',' To correct your calculation just use the REPLACE function.…
-
0
votes2
answers165
viewsA: how to clear an attribute in html by javascript
Just clear select with id="result". $("#result").empty(); //Aqui segue seu código var option = $("<option></option>").appendTo($('#result'));
-
0
votes2
answers186
viewsA: Prevent the user from using the mainwindow window while another window is open
You must use Form.ShowDialog. ShowDialog()method instead of Show()when you display the child form.
-
0
votes2
answers265
viewsA: Token Webapi C# Auth
In your file Startup.Cs change the passage: app.UseOAuthAuthorizationServer(optionsConfigurationToken); app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions()); for:…
-
-2
votes2
answers2064
viewsA: How to perform a function on one component and affect another component - Angular 6
Below I will pass a very simple example of how to shoot and listen to events from different contexts, will be described what to do in each context. CONTEXT - Green button component service: import {…
-
0
votes1
answer480
viewsA: Angular 2 image Base64 how to use?
Instead of using the resource sanitizer.bypassSecurityTrustResourceUrl you can put the Base64 code directly into the attribute src: this.imagemPath = `data:image/png;base64, ${a}`; Check if during…
-
1
votes1
answer94
viewsA: Concatenate string
to get the current day already with two houses you must use the command: string diaAtual = DateTime.Now.ToString("dd");
c#answered Emerson Dias dos Santos 85 -
1
votes1
answer55
viewsA: Send image between javascript pages
Suggestion, you can save this image (stream) in one of the Webstores, so you will have quick and easy access. You can use localStorage: (https://www.w3schools.com/html/html5_webstorage.asp) to save…
javascriptanswered Emerson Dias dos Santos 85 -
0
votes3
answers1412
viewsA: Refresh only 1 time
Guy I believe is not a good solution make a refresh right after accessing the site. But you can use the command: location.reload();