Questions tagged as 'c#'

1
answer

Deserialize JSON with the following format [param 1, param 2, param 3]

How can I deserialize this information. {"games":"[ [ID, Descripcion1, Descripcion2, Descripcion3], [222, Halo, $2333, null], [333, Sugar, $333, null]]} "     
asked by 02.10.2018 / 11:42
0
answers

System.FormatException ZModem Protocol

Hi, I'm working with the C # programming language and with a communication protocol called Zmodem. I downloaded the .dll file to implement functions that allow communication, but when I try to make my code an exception is thrown and I do not kno...
asked by 02.10.2018 / 16:43
0
answers

Give a custom style to MenuStrip

Hello with all I'm trying to customize a menu with different colors than the one that comes by default so far and I could change the part that loads at the beginning but when I click on the menu it shows me as if it were the one that comes by de...
asked by 01.10.2018 / 21:24
1
answer

Create buttons for a form (two values, yes, no)

I have this form, that I want that at the moment of being filled out I see only two options to read, something like a switch, yes or no; using bootstrap. <form> <div class="editor-label"> @Html.LabelFor(model => model...
asked by 01.10.2018 / 19:32
1
answer

Error converting varchar data types to int

string cmd = string.Format("EXEC GuardarUsuario '{0}','{1}','{2}','{3}','{4}','{5}','{6}'", txtNom.Text.Trim(), txtApe.Text.Trim(), txtMail.Text.Trim(), txtUsu.Text.Trim(), txtPass.Text.Trim(), timeAlta.Text.Trim(), timeBaja.Text.Trim()); Utilida...
asked by 01.10.2018 / 21:51
0
answers

How to get the Name and Nif of a certificate encoded in base64

I am trying to get the Name and Nif of a base64 encoded certificate. I used the following code: byte[] decbuff = Convert.FromBase64String(cert); string result = System.Text.Encoding.UTF8.GetString(decbuff); But the code returns the certific...
asked by 01.10.2018 / 13:39
0
answers

I can not save a record for the char data type in c # MVC

I have a table of products and the code I have as char(6) in the data and business layer I do the whole process, now in the presentation layer I convert the string in char using Convert.TChar(txtcodigo.Text) , it does not sen...
asked by 30.09.2018 / 18:55
0
answers

Define a color for an app in UWP

What happens is that I have an app in UWP and I vary the colors of it according to the theme I have defined in the system, and I need my app to have the same color here and in the computers where they are going to install. I guess the color i...
asked by 26.09.2018 / 21:06
0
answers

Receive POST method parameters

How can I capture the parameters that an external page sends me by POST method. I have an application in c # that connects to an api "X" and said api returns parameters but for a request, to an url that I give, by POST method     
asked by 26.09.2018 / 19:13
0
answers

C # Use HttpGet

good morning, I consult the following, as I do to receive a list < > in C # and send it to javascript in order to display it in a table with data on my website. I can send it using json with POST and send it through a method with the tag [...
asked by 01.10.2018 / 22:18