Questions tagged as '.net'

1
answer

I can not assign a double value to a datagrid, it takes it as int

public static int contador_fila = 0; private void btn_Colocar_Click(object sender, EventArgs e) { if (Utilidades.ValidarFormulario(this,errorProvider1) == false) { bool existe = false; int num_fila =0; if (cont...
asked by 19.03.2018 / 21:32
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

How do I insert an excel in a sql server table without inserting repeated data in the table?

someone could help me with something that has been stuck for some days, what happens is that I have to insert the records of a document in excel in a table in sql server, but I have to verify that the records that I insert, do not repeat with th...
asked by 03.01.2018 / 23:43
1
answer

Problem with variable razor mvc

I have an EsperRule clas which has some properties, among them another EsperRule, my goal is to show all the data of the EsperRule and in case the other EsperRule is different from null, show the data of that and so on. I did something like t...
asked by 12.09.2017 / 15:18
1
answer

How to use the split with more data in visual

I have a question, I would like to know how to separate my variables and numbers from the operators, here is my example: Dim letras As String() Dim texto As String = "abc*5+x/(y+z)" letras = texto.Split(CChar("*")) For i = 0 To let...
asked by 05.03.2018 / 01:26
1
answer

Create HTML table with c # from a datatable

Good afternoon everyone. What I need is to create an HTML table from c #, the data I need I have in a datatable, this in order to send an email from a class and in the body must go a table. Searching the web I could see that it can be achi...
asked by 03.06.2017 / 19:35
1
answer

Remove spaces when pasting into Excel from DataGridView

I want to paste the contents of a DataGridView in Excel. However, the content of a column, because each row has extra blanks at the end of the string, makes this column much longer than the content. Whereas I have this code to select what I w...
asked by 14.06.2017 / 16:20
1
answer

VB.NET- Enter values in an array

I'm making a one-dimensional array of size N (this value is entered by the user in a textbox) in Visual Basic.net. Now I want to enter the numbers to the arrangement but I can not find anywhere to do it from a textbox or a window appears and go...
asked by 02.05.2017 / 18:21
2
answers

Resize a set of fields in a set of tables by means of a .NET loop

I have two vectors with String data Public tablas() As String = {"LinFraVen", "LinAlbVen", "LinPedCli", "LinPres", "LinFraCom", "LinAlbCom", "LinPedPro", "LinInven", "LinTarifa", "NecesidadProductos", "LinCuotas", "LinActob", "LinOrdCom", "Lin...
asked by 20.03.2017 / 13:31
3
answers

Convert JSON containing backslash using C #

I tell you that I am consuming a REST service from a third party, when I make the call this returns me a json, the problem is that the json comes in the following way: (Here is a fragment of the JSON) "GetBookingResult": "{\"reserva\":{\"fecha...
asked by 23.02.2017 / 00:25