Questions tagged as 'c#'

1
answer

I have a problem when making a record with c # and entity framework

I get a dialogue but I do not know what it means ... when loading the data I do it in the following way: var listaRed = con.Registros.ToList(); if (listaRed.Count > 0) { cbSelecNombreRed.DataSource...
asked by 02.01.2018 / 01:26
0
answers

Error signing with SHA-256 algorithms or higher with iTextSharp

I am developing an application to sign PDF documents with the certificates listed in the windows store (Installed, Token, Smart Card) using iTextSharp, my problem is given when using the signature algorithms (since this can be configurable), whe...
asked by 11.01.2018 / 21:55
0
answers

How to get the value of the ref parameter from the lists that are in a method ImportIntervencionesExcel to another method

[HttpPost] public ActionResult ImportarIntervencionesExcel(int progrcodi, int tipoProgramacion) { ArchivosModel model = new ArchivosModel(); Intervencion models = new Intervencion(); models.ListaIntervenciones...
asked by 29.12.2017 / 16:27
2
answers

Get the path of a file listed in a combo list

I wanted to know if it is possible to obtain the path of a file which is listed in a combo, I mean, I've put the following code to list the name of the files in a folder in a combo: DirectoryInfo d = new DirectoryInfo("1.76"); FileInfo[] files...
asked by 30.12.2017 / 19:16
1
answer

Convert datarowview into C #

Good evening I continue, passing my system from Vb to C #, now I have this error in this conversion, I visualized it in this way: Dim aoRow As dsmstpsnal.GetDetaPsnal01Row = CType(CType(e.Row, DataRowView).Row, dsmstpsnal.GetDetaPsnal01Row)...
asked by 22.12.2017 / 05:55
1
answer

How to rescue value a select MVC C #

   The idea is to save the selected value in the select in a variable, and then save it in a Database. CONTROLLER GET public ActionResult GetIndex() { //crear un objeto para generar la consulta. NameValueCollection quer...
asked by 21.12.2017 / 19:49
0
answers

Error 42601 when executing a stored procedure in C # with PostgreSQL

I am trying to create a method that executes a stored procedure that allows me to insert records in a table. However, I get an error preventing the method from running. This is the code: public bool Insertar(string nombre) {...
asked by 22.12.2017 / 09:49
0
answers

Change order of elements in XML document node

I develop an application that signs an XML document ... even there perfect ... But I must change the order in which these elements appear -<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="id-e34ffbff277e8d1432e864436aa118824">...
asked by 04.01.2018 / 20:17
1
answer

Property: Show / Hide controls within a User Control

I am trying to create a Categoría for controles (components) within a Control de Usuario so that they are reflected in Propiedades of Visual Studio, to make visible / not visible a PictureBox , between other opt...
asked by 12.01.2018 / 18:16
0
answers

because I do not get the image in the datagridview cell in c #

happens that I have a list of employees in which they can be those who are high and those who are low then what I tried is to change the image of a cell depending on the state they are using the resource try with this dg_Empleado.Rows[p].C...
asked by 12.01.2018 / 16:37