Posts by Leandro Amarilha • 119 points
8 posts
-
0
votes1
answer73
viewsA: Repeating data from a JOBJECT
The line below is only returning the first: JObject u = (JObject)users[0]; Do: [HttpPost] public PartialViewResult DadosUser2(ListaUsers user_IDs) { UserBLL bll = new UserBLL(context.db); JArray…
-
0
votes4
answers766
viewsA: How do I capture only the last 2 digits of the current year?
There are some forms, it depends a lot of what you want and mainly as the information of the "date" this coming (type/format). Examples: Console.WriteLine(DateTime.Now.ToString("yy"));…
c#answered Leandro Amarilha 119 -
3
votes1
answer143
viewsA: Generate report in Azure
Take a look at the Power BI from Microsoft. I’m getting to know him now and so far I’m impressed with what he can do. Tutorial here I hope it helps you.…
-
1
votes2
answers1675
viewsA: Validating Login
Avoid using many nested if’s Else, assume that if you have many, there is a high probability that your code has logic error. I didn’t test it, but try it like this: private void…
-
4
votes3
answers459
viewsA: Does C# have a class for handling properties files?
I’m a Java layman, but I believe you’re talking about storing "configuration" information and/or miscellaneous information in one location to be "consumed" when necessary. In C# there are some ways…
-
0
votes1
answer115
viewsA: How to Interact from Web Application to Client Machines
From what I understand you want to "automate" some processes that already exist and that today require a human interaction to be realized or simply YOU, and not the user, indicate when to do. As…
-
1
votes3
answers1233
viewsA: How to login to desktop application via web application?
If the validation has to be with the "authentication of the desktop application using the active login of the web application" (according to your words) the most correct is when the user…
-
2
votes3
answers190
viewsA: Console, Windows Forms or MVC what’s the fastest for heavy loads?
In this case there is not the fastest and yes how the processing will be done. As there will be no human interaction, use console. As it is a process that will repeat itself several times, I believe…