Questions tagged as 'c#'

1
answer

Choose Certificate through CNPJ

I have this function that looks for the certificate by the serial: public static X509Certificate2 EscolherCertificado() { var store = new X509Store("MY", StoreLocation.CurrentUser); X509Certificate2 x509 = null; v...
asked by 29.11.2018 / 12:57
0
answers

What would it be! in the algorithm? ex: if (! preVenda.Text.Contains (',')) [duplicate]

I'm doing a Sales program, and I found this way to solve the problem I had, but I did not understand that exclamation before the condition.     
asked by 25.11.2018 / 12:49
1
answer

Doubt with Update in Asp.NET MVC

Sorry for the question, I'm learning Asp.NET with EF and I'm having trouble performing a specific Update. I want to make a system where there are cash transactions between accounts. The structural part is ok, but the problem is this: When...
asked by 25.11.2018 / 23:28
1
answer

Copy TAG specific XML file and merge with another XML file

Situation: - I need a single XML file that contains the data of all the other existing files and the ones that are to come. But I can not just join one file with the other and I just need a specific tag. Is there any way to do this in C # or...
asked by 25.11.2018 / 01:40
1
answer

Calling a Modal via Html.ActionLink

I have a screen that does the user's password change. This screen shows the user name and clicking the name, it is directed to the screen to change the password. As I would do to make this call with a modal, I already have the scripts, but I...
asked by 30.11.2018 / 16:43
0
answers

Adding watermark with C # without using System.Drawing.Bitmap in Azure

I'm new to the .NET world and I'm having a problem uploading images to the site. I am using a function to add the watermark in the photo as it is sent but apparently Azure no longer accepts the use of System.Drawing.Bitmap. I tried to find some...
asked by 23.11.2018 / 13:20
1
answer

Creating a C #

Good afternoon friends, I'm creating a program in C # that should plot the current values of the serial port (arduino) in a picture box. To draw the graph I am creating points (x, y) and linking them forming drawline lines. In this way the graph...
asked by 28.11.2018 / 17:43
0
answers

C # Async / Await with an Invoke?

Good people. I have a small problem, I have a Window to serve only to send information to the user to say what is happening in Background, but sometimes the code runs fast and more and he does the close before opening the window. Remember tha...
asked by 28.11.2018 / 17:26
0
answers

xls created through C #, but does not add values

I have a method that generates excel (.xls), but I have a problem: excel is being generated perfectly, but when I try to sum the values of the cells nothing happens, it only adds if I open cell by cell (I do not need change any value). In the...
asked by 23.11.2018 / 15:38
1
answer

Bank connection object: should I have only one for the whole system or one instance per class?

What is the best practice: to have only one point (Singleton) that returns the connections to the database or to create an instance of the connection for each object? My system accesses multiple banks and so I created a AcessoBanco cla...
asked by 23.11.2018 / 20:23