Questions tagged as 'c#'

1
answer

How can I read the serial port's input values?

I'm trying to read the input values of port com , in specific COM3 , but it does not work. I tried the examples provided by the MS page, about the ports, but these simply do not receive data .. I have tried several codes, and d...
asked by 14.02.2018 / 18:34
1
answer

Error when converting date with 201801 format?

I have the following method in C #, which transforms the dates of this format: 201801 to this format: 01/01/2018 - 15/01/2018 which divides the month into 15 days, but the detail here is that when I put 201824 I get the following error:    St...
asked by 13.02.2018 / 19:21
1
answer

Xamarin Android - Get GPS date

I have a question to ask. I have an app that works as a work attendance clock, and when making the entry or exit, I get the GPS data, these are: Latitude Length Date and time. The detail I have is that if you change the time of the de...
asked by 13.04.2018 / 00:49
1
answer

Create header signed request SOAP c #

I am consuming a webServices written in Java and in the call to the request I need a signature X509Certificate2 in the header of the request, an example of how it should look like this: External Link I'm trying to create a WSHttpBinding...
asked by 09.04.2018 / 14:40
1
answer

How to get a processed pdf on the server and display it in a browser window without downloading the file

Currently I have a pdf that has several sheets in a database stored path, and what I do is get a new pdf with a file from the server file and what I need is to show that pdf in a new window without needing to download the file, what I get now is...
asked by 24.01.2018 / 23:43
2
answers

Send an image with Ajax and Jquery in MVC c #

I am working in MVC and I want to send an image through Ajax with Jquery, I have been able to send text data but until now I do not know how to send the image, because when I put it to see what data it sent me it comes out as null This is the...
asked by 16.04.2018 / 04:08
1
answer

C # IndexOutOfRangeException?

I'm doing a login in C# and SQL Server , with a table that I just created. In this table, I store the passwords of the users with a hash SHA2_256 . When making the login, I use this code: var.User = txtUser.Text; var.Ps...
asked by 13.04.2018 / 22:04
1
answer

Compare values obtained from the same query

I'm new to C #, I'm doing a web application in VisualStudio 2015, with ASP.NET MVC5 and EF6. I need to compare the values that a linq query throws at me, normally I would do it with a two for , one within the other, although maybe they can...
asked by 15.03.2018 / 15:18
1
answer

Is there a way to send an e-mail without using an App in Xamarin.forms?

Recently I'm programming in Xamarin.forms and I have an App that by pressing a button you have to send an e-mail to a predefined email. Searching the internet I found the NuGet Xam.Plugins.Messaging which works, but that makes the App...
asked by 15.01.2018 / 17:11
2
answers

Move Previous / Next Record in DataGridView, C #

I am browsing the DataGridView records through the actions of the Anterior and Siguiente buttons, the current method that works correctly to scroll through each record. But I used this code for combining the same cells in...
asked by 09.02.2018 / 14:48