Questions tagged as 'c#'

1
answer

Keep data in update aspx c #

Dear, I am doing a CRUD with entityframework in aspx c #, when consulting about the user to edit I show the data in several textbox. What I want to do is that if the user deletes a data (in the textbox) and updates the user, in the database the...
asked by 25.08.2017 / 18:36
2
answers

how you can get the native error code of an exception in .net

As is known, the same exception can be detonated in multiple ways, an example of this IOException that starts when there is a NetworkStream timeout or when the host of a TcpClient is disconnected. What I need is a way to get the error code of ea...
asked by 24.08.2017 / 23:45
1
answer

Electronic invoicing using CFDI 3.3 problem with the UUID

I want to know what the UUID equals, since leaving it only in quotes ("") tells me that it can not be null. I'm trying to put it in the following way: cfdi.CfdiRelacionados = new ComprobanteCfdiRelacionados(); cfdi.CfdiRelacionados.Cf...
asked by 11.08.2017 / 22:38
1
answer

Unable to convert from 'Android.Net.Uri' to 'string'

I'm trying to save an image attached to a variable to send by mail but I get this error:    Unable to convert from 'Android.Net.Uri' to 'string' I send code where I get an error: if (uris != null) { var filePath = System.IO.Path.Com...
asked by 08.08.2017 / 21:35
1
answer

Movement by specific keys (event KeyPress does not receive Enter)

I have a sales form in which the user can go through the sales adding items until the sale ends. I want you to press the key to change the attribute enabled of an element and pass the focus to it. This is what I tried: private vo...
asked by 06.08.2017 / 03:47
1
answer

Problem sending a message

I've made a snippet of code that sends a message via TCP / IP with sockets from one computer to another. It works well (sends the message) if the two computers are connected to the same network, however, if I connect one of the two computers to...
asked by 05.08.2017 / 11:58
1
answer

Read file from an FTP server without downloading them to my disk

I have an app that is reading CSV files from an FTP server and downloads it to a folder on the disk private static void DownloadFtpDirectory(string url, NetworkCredential credentials, string localPath) { ServicePointManage...
asked by 04.08.2017 / 09:28
1
answer

implode of columns and rows of DataTable C #

I am trying to make a data insertion, of a dataTable whose data has been passed from an sql query, I want to dump this data into another table, as they come. This function will do it for several tables, so the column names and the quantity ca...
asked by 22.09.2017 / 16:08
1
answer

DLL, its methods and / or classes do not appear in reference

Add a dll reference of a project Lybrary asp Core in another project for tests but I do not see the classes that were implemented or adding namespace using (Visual studio 2017), how to see those classes? or does the compiled have something to do...
asked by 27.07.2017 / 16:04
1
answer

Restore .bak in SQL Server CE

Good day to all, my question is as follows how to restore a sql server .bak backup to a sqm server compact edition .mdf database / or otherwise run a .sql script in sql server ce, thank you in advance for your help     
asked by 05.09.2017 / 20:19