Posts by Armindo Gomes • 306 points
10 posts
-
2
votes1
answer191
viewsA: How to make the Login page become a standard route for an Asp.Net Core 2.2 application
It’s not about route: it’s about making all controllers protected by a standard authorization filter. Once all controllers are protected, all access will be redirected to the login page. Controllers…
-
2
votes1
answer1644
viewsA: Entity Framework Core 2.0 - Add-Migration does not work
Try it this way: In the archive appsettings.json "LogAuditoriaConnection": "Server=.\\sqlexpress;Database=LogAuditoria;Trusted_Connection=True;User Id=sa;Password=**********" In the archive…
-
0
votes4
answers3505
viewsA: How to generate random characters or string?
Try this solution: private static string Seleciona() { var origem = new List<char>() { 'A', 'B', 'C', 'C', 'C', 'C' }; var resultado = new StringBuilder(); int indice; var rnd = new…
-
1
votes1
answer176
viewsA: TCP Server Connection (127.0.0.1) Why are you crashing on this line?
There’s nothing wrong. The line client = servidor.AcceptTcpClient(); blocks until you receive some connection. See the example below: Server class Servidor { static void Main(string[] args) { string…
c#answered Armindo Gomes 306 -
1
votes1
answer81
viewsA: EntityFramework DatabaseGenerated
What you should do is enable the ability to insert explicit values in the identity column of your table. This is done by the parameter SET IDENTITY_INSERT [TABELA] {ON|OFF} Imagine we have the…
-
1
votes1
answer614
viewsA: Login with Facebook at Xamarin Forms
Put the following URL in the field Valid Oauth redirect uris: http://www.facebook.com/connect/login_success.html…
-
1
votes1
answer798
viewsA: Difficulty with listview layout on Xamarin.Forms
Add the property HasUnevenRows to your Listview and assign the value trueto her. <ListView HasUnevenRows="True" x:Name="listaLibera" ItemSelected="listaLibera_ItemSelected" BackgroundColor="Aqua"…
-
0
votes2
answers371
viewsA: Sending email C# The remote name could not be resolved
Making an appointment with the nslookup, the host smtp.multiplick.com did not appear as the MX of the domain. In a reverse query, the PTR for this host was not found. The MX of the domain I found…
-
3
votes1
answer321
viewsA: How to make an event work with Xamarin.Forms and c#
His method is called btnAdicionar_OnClicked while the call of the event Clicked button is pointing to btnAdicionar_Clicked Make the correction that your content will appear on the device/emulator…
-
2
votes1
answer180
viewsA: Page Content does not appear in Xamarin Forms
The file on Nos.xaml should be like this: <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"…