Questions tagged as '.net'

1
answer

MySql ExecuteReader does not bring results [C #]

good, I have the query, I am with a small project in C #, but I have the problem that a query that when executing it in mysql brings me the results correctly but when it is executed in my code, it recognizes me that it returns a row, but when I...
asked by 24.09.2017 / 01:54
1
answer

Restart service when generating exception

I have a service that receives events by TCP running, the problem is that when an exception occurs the application is blocked, what I want is that when this exception occurs, I restart the service. using System; using Logic; namespace TestsCo...
asked by 04.10.2017 / 02:50
1
answer

How to obtain data from a selected cell in datagridview c #?

I have a Datagridview named dgv , in the doubleclick event of this * dgv * I need to get the value that cell where I made doubleclick , the name of the column where that cell is and the value of the first row where that cell is. I enclose...
asked by 23.09.2017 / 02:13
0
answers

restart Socket when exception occurs

I have a service that receives events by TCP , when an exception occurs in the method ClientConnected(IAsyncResult asyncResult) the application is closed, and when controlling the exception with a try catch the application is...
asked by 12.09.2017 / 22:08
0
answers

Validate values from application .net mvc5 & bootsrap to sql?

I'm new to this. I am doing a login in .net mvc5 with bootstrap, I already made my connection with sql, I just want to know how to take the values that insert in "name" and "password" in sql when pressing the "login" button. <form role=...
asked by 27.09.2017 / 18:35
0
answers

Access error with Microsoft.Office.Interop

Good morning, I have an application in which I generate an Excel from some html files, everything works correctly locally but when I publish it on the server it works sometimes if and sometimes not. I am not able to come up with the solutio...
asked by 12.09.2017 / 11:13
2
answers

Get data from a DataGridView

How can I get data from a DataGridView? I have an object called dgvPersonas of type DataGridView, I charge data, they are shown correctly in the table and now I want to recover that data. Specifically select a row, to then obtain a column from t...
asked by 08.09.2017 / 01:42
1
answer

When sending mail from C #, it does not remain in the Sent Items folder

My problem is the following I am sending mail from a smtp server that was properly mounted, it is not the smtp.live; he sends the emails well, but the problem is that it does not remain in the folder of sent items of the mail from which it was s...
asked by 18.08.2017 / 17:41
1
answer

Execute a Javascript from code-behind .net 4.5

I am developing a management process to a database from a webservice and since the process takes more than 20 minutes I need to show the user messages in a <textarea> in a part of the page, without updating the page for this place...
asked by 23.08.2017 / 20:56
0
answers

Error entering data to a Datagridview in C #

I have a DataGridView that has two functions depending on whether you select the Agregar or Modificar button: This is the DataGridView : If I do Click to the button Agregar of the first image...
asked by 11.08.2017 / 23:00