Questions tagged as 'c#'

2
answers

Search for items in a list

Hello, I need to search for items from a list, I have a Client class public class Cliente { public int ClienteId { get; set; } public string RazonSocial { get; set; } public EnumDocumentoEdentidad DocumentoIdentidad { get; set; }...
asked by 16.10.2016 / 00:35
2
answers

c # cartesian product of arrays

I need to find a way to get all the combinations that can be obtained by taking an element from the first array and another from the second. I give an example so that it is understood ARRAY X = [A, B] ARRAY Y = [1,2] results that you are look...
asked by 23.03.2017 / 20:47
1
answer

In c # all data types are objects?

This is a topic that does not end up being clear, looking at official sites, forums and other pages. So-called "primitive data" in c # if so, are they all objects? An example is the int internally is a struct but according to the documentatio...
asked by 02.08.2016 / 07:38
2
answers

How can I download all the files in the array?

I have the following arrangement: foreach (string Id in Arguments.SelectedValues) { string temp = @"http://localhost:17277/blob.ashx?Pdf=o|" + Id; Result.NavigateUrl = @"http://localhost:17277/blob.ashx?Pdf=o|" + Id; } in which I...
asked by 12.08.2016 / 20:56
2
answers

Add Event Click to a Button Asp.Net

I create a Button from code c #, now I need to add a method when I click on the ... I did this but it does not work public void AgregarBoton() { Button miBoton = new Button(); miBoton.ID = "BtnCheck";...
asked by 07.08.2016 / 15:33
1
answer

How to save the last element of a dynamic combobox in c #?

Hi, I'm doing a program in which I save all my elements in a combobox since no sé muy bien hacerlo con listas o diccionarios . The thing is that the combobox will be adding elements and increasing in size. The problem is that I need to...
asked by 05.04.2017 / 19:38
2
answers

Build a datatable from other datatables

Imagine that we have 3 datatables , each with a different number of rows, For example: DATATABLE A fila 1 - "a1" fila 2 - "a2" DATATABLE B fila 1 - "b1" fila 2 - "b2" fila 3 - "b3" DATATABLE C fila 1 - "c1" fila 2 - "c2" How can...
asked by 06.04.2017 / 10:00
1
answer

Load a windows form in C # by means of a datagrid cell double click

Good day I am developing a windows form with a grid, which is loaded by means of a database, as I can open a new windows form by double clicking on any record inside the datagridview. Thanks for the help.     
asked by 06.07.2016 / 18:55
1
answer

Change the value of a checkbox id MVC4

I have a problem with my view checkboxes, and I can not understand how I can take all the values that are selected and send them to the controller to be able to operate with them. I have the following: Vista. @model List<Model.ofertas_co...
asked by 11.07.2016 / 11:32
1
answer

Add to TemplateField an ImageButton at run time

I have this TemplateField imgTemp = new TemplateField(); imgTemp.ItemTemplate = new ColumnaTemplate("Seleccion"); imgTemp.EditItemTemplate = new ElementoTemplate("Seleccion"); imgTemp.HeaderText = "Seleccion"; GridView1.Columns...
asked by 05.07.2016 / 02:07