Questions tagged as 'c#'

2
answers

Searches conditioned to sql from c #

C # does not want to read the code, it marks me completely as an error, I do not know if it's because of the way I'm locking up each case. the dtpdesde and dtphasta are controls DateTimePicker txtbusqueda and...
asked by 04.07.2017 / 18:49
1
answer

Linq - Consultation in the third level list

I have a list of a class (A) that contains a list of another class (B) and that in turn contains another list of another class (C). I need to filter the initial list (A) from the value of a property of the class (C). The example would be somethi...
asked by 08.06.2017 / 12:43
3
answers

Chronometer with milliseconds in c #

I have this code in my timer. What happens is that when making comparisons with a chronometer I do not have the required accuracy, I have no idea what the error may be. I need to make a chronometer to mark me m-s-ms. private void t1_Tick(obje...
asked by 13.06.2017 / 02:43
3
answers

How to interleave 2 colors in rows of the DataGridView DevExpress? In C # .Net

I used the RowStyle event with the following code: private void dgvPersonalizadoInterior_RowStyle(object sender, RowStyleEventArgs e) { try { for (int i = 0; i < dgvPersonalizadoInterior.RowCo...
asked by 09.06.2017 / 17:29
1
answer

I cut the numbers in itextSharp from a barcode

I am printing a barcode with iTextsharp but in the pdf I cut it. I leave the images. I have 18 digits. And here I cut it to 13 digits.     
asked by 27.09.2017 / 15:22
1
answer

How to execute a C # form with OpenFileDialog from an html?

Next I append an example of code html where I need to know how I can send execute a form that has a OpenFileDialog object to search and load a file with extension .csv ; the part where I want to embed the highlight with asterisks (*)....
asked by 13.06.2017 / 20:29
1
answer

How to get a single value of a Json [duplicate]

I have my response that comes in json I get it in the following way: StreamReader sr = new StreamReader(newStream); String json = sr.ReadToEnd(); With a WriteLine it shows me: [{"id":"1","correo":"[email protected]","clave...
asked by 08.02.2018 / 03:49
3
answers

Sort lists in C #

I need to return the list facturas ordered by the field entidades . I've tried like that but it does not work for me: facturas.OrderBy(f => f.Entidades).ToList(); Code: public ActionResult Index() { var facturas =...
asked by 01.06.2017 / 16:28
1
answer

Ajax url changes on the server - MVC

Is it wrong to declare urls in ajax in this way? $.ajax ({ url: '/SFI_IncentivoDet/buscarIncentivosSinDetalles', type: 'post' }); I am working with the functions in separate files, in some cases I hav...
asked by 04.08.2017 / 07:27
1
answer

Random generates the same result several times

string nombre; public string gen2(int Name_Len) { string[] abc = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" }; if (Name_Len >= 5)...
asked by 06.08.2017 / 20:09