Questions tagged as 'c#'

1
answer

Convert SqlDataReader in Generic List

I have a SqlDataReader in a method and I need to return it, the problem is that when closing the SQL connection the data of SqlDataReader disappears, to what kind of data should I be able to pass it to return it ?, this is my code static publi...
asked by 06.02.2017 / 16:37
2
answers

Show image of GridView to an img of an asp.net table

I want to pass an image of GridView to a table that has the IMG tag. I was previously passing data from DataGridView to TexBox and it worked for me. Now the problem is that it can not be shown on that label. This is...
asked by 31.03.2017 / 22:15
1
answer

Pass the contents of a DataGridView to a DataSet with an already defined DataTable

I have a DataGridView that I feed from about TextBox and I need to pass the content from DataGrid to DataSet with a DataTable previously created, I tried to cast it like this: DataSet ds = (DataSet)dataGridVi...
asked by 10.06.2017 / 01:19
1
answer

Problems signing XML with C #

I have the following code to sign XML: private XmlDocument FirmarXML(XmlDocument xmlDoc, string nombreCert) { X509Certificate2 myCert = new X509Certificate2(); myCert = GetCertificateBySubject(nombreCert); var...
asked by 30.01.2017 / 17:15
3
answers

Separate a json string, saving in variables with their respective value

This is the result of consulting a webservice {"Nombre":"Juan","Apellido":"Luna","Edad":26,"FechaNacimiento":"09/03/1990 12:00:00 AM"} I need some way to separate the values and save them with the name of the variable and the value that cor...
asked by 08.03.2017 / 19:45
1
answer

Problems when closing my form in C # (the confirmation message is repeated)

My problem is that my form has an event to close and in fact it does it correctly as long as I do not return to where the event occurred, this means that while I browse through other windows except the initial one, it appears the message only on...
asked by 08.03.2017 / 19:41
1
answer

How to call a Store Procedure that returns a list of data in the Entity Framework Code First?

I need to show a list in a DataGridView but due to the complexity of the SQL query I prefer not to use Lin-Q so I create a stored procedure but since I use the Entity Framework I do not want to call using SQLConnection but from DbContext.     
asked by 09.01.2017 / 02:12
1
answer

Oracle.DataAccess DLL error

I am using the dll Oracle.DataAcess and I have the following error: Error de servidor en la aplicación '/'. No se puede cargar el archivo o ensamblado 'Oracle.DataAccess' ni una de sus dependencias. Se ha intentado cargar un programa con...
asked by 10.01.2017 / 20:05
1
answer

Several panels with transparent background in a form

I'm doing a layout of setting up a restaurant room, with its tables, stools, bar, etc. I have it almost finished, but I have a design problem that I can not solve. You see, I can add objects to the room (these objects have a transparent backgr...
asked by 11.01.2017 / 16:59
4
answers

I do not work LogOut button in C #

I'm making a link to "Close Session" <li><a id="Logout" href="#" onclick="btLogOut" runat="server">Cerrar Sesión</a></li> and with the method public void btLogOut() { System.Web.Security.FormsAuthentication...
asked by 06.12.2016 / 15:34