Questions tagged as 'c#'

2
answers

Convert HiddenField Value to Datetime in C #

Greetings, I have the following HiddenField <asp:HiddenField ID="hdfFecha" runat="server" /> and in the code behing I have, to convert it to "dd-MM-yyyy" format. FormAGPost.Fecha = DateTime.ParseExact(hdfFecha.Value, "dd-MM-yyyy"...
asked by 11.01.2017 / 15:11
1
answer

I can not convert a String to a Boolean

I am with a form, in C # with the MVC structure, and I can not convert the string to bool , it is assumed that the code to write must be done from the controller and in the html <form> <div class="editor-label">...
asked by 02.10.2018 / 19:00
1
answer

Cognitive Services, Face API Microsoft

I am developing an android app consuming services from the Microsoft Face API. The question arises of how to obtain or see where the groups of people and people in the different groups are kept. Or if someone knows if this data can be consulted...
asked by 31.08.2018 / 12:45
2
answers

http request in c #

Hi, I'm trying to make an application in C # related to a game. The problem I have is the following is that when I do the following always shows me the exception: try { string response = await _client.GetStringAsync(string.Format(Config.US...
asked by 24.10.2016 / 22:27
1
answer

How can I raise Math.E to an array?

I have used this code but it does not let me raise the number e to an array nor with Math.Pow() , Math.exp() . How can I do it?? here I leave code: using System; using System.Collections.Generic; using System.Linq; using Sys...
asked by 17.12.2018 / 09:33
2
answers

How can I download a PDF file from a registry in a MySQL database with C #?

With the help of this query, ( How can I attach a PDF file to a DB record in SQL with C #? ) and  with some small modifications I was able to add a PDF file to a MySQL table, now I have the inverse problem, this is I need to be able to download...
asked by 07.04.2016 / 22:27
1
answer

Join 2 files in array of bytes in one [closed]

I have a method that receives as parameters 2 files in byte array format and its function is to join them in a single array. The problem is that when I try to open the resulting file the application tells me that the file is corrupt. The format...
asked by 24.04.2018 / 07:22
1
answer

Functions void in c # in which cases I should apply it

In which cases should I use a void function? Because I understand that if it does not return an answer to the main it is void ... but I do not understand in which cases to apply it and in which it does not. I decide? Do you have an application r...
asked by 09.06.2018 / 00:47
2
answers

Save in an Array [] file names of a folder in C #

How to save the file names in an array? When opening the Open File Dialog the path is obtained and in an array all the names of images or files are saved. Thank you.     
asked by 28.11.2018 / 22:27
1
answer

Error using DateTime in C #

I am working on visual c # and I need to pass the date as is to a database. Also when the user saves the data entered, he / she is asked if he / she wants to save more data By giving it if it is cleaned and the user can write again in the form...
asked by 11.12.2018 / 03:17