Questions tagged as 'c#'

1
answer

Show character frequency in a string

Again here, I'm trying to print on screen the relative frequency of the character that is most often found in a chain. In order to calculate the relative frequency, the formula is as follows: fr = Cantidad de veces que aparece el caracter / Ca...
asked by 21.11.2017 / 14:22
1
answer

find a row (s) with DataTable.Select

I carry out the following instruction .. DataRow[] results = m_dtableKardex.Select("IdReferencia = " + l_intIdReferencia + " OR IdReferencia IS NULL" + " AND IdTamano...
asked by 08.02.2018 / 20:41
1
answer

Improve method to return a priority value within a list

I'm designing a view that shows the location of some boxes in an inventory, I'll put it in an image here In each box the first data is the part number, the second is the amount of things you have and the third is the priority in which they...
asked by 08.02.2018 / 23:43
1
answer

C # Consume Webservice

Recently I made a utility to send invoices to the SII system of the hacienda using the hacienda webservice. In visual studio create a reference to the web service link In this way, I conveniently access the methods and I can send the des...
asked by 07.02.2018 / 17:39
2
answers

Deliver JSON nested in WebAPI .net core

I need to deliver a JSON that has a TimelineItem where each timelineitem corresponds to a user. User class public class User { public int Id { get; set; } public string Name { get; set; } } Class timelineitem public cla...
asked by 19.12.2017 / 19:12
3
answers

I am Configuration A Search button of my Client Form and I have a Problems with a Variable

Hi Guys, I'm a Rookie in this and I'm doing a Small Final Degree Project on a Medical Office. private void btnbuscar_Click_1(object sender, EventArgs e) { BuscarUsuario bc = new BuscarUsuario(); bc.Show(); if (bc.Cl...
asked by 18.12.2017 / 22:08
1
answer

count records in a table

Good I need to show a count I am working with a listing and lambda as follows: @foreach (var item in Denuncias) { var DenunciaPersona = dbDP.TraerTodo().Where(x => x.NODENUNCIA ==...
asked by 18.12.2017 / 22:31
2
answers

Reading text files in Textbox

I am looking forward to working on my applications with simple text files. Something very simple, place a button and a TextBox . The TextBox will show the content of the .txt and the button will give the instruction to load it....
asked by 18.12.2017 / 23:50
2
answers

Error opening old ASP.NET

I have had an old website made in Visual Studio 2010, I need to open it to see how it works internally. I try to open the project with VS2015 Professional but it gives me the following error and it does not open it for me. I would appre...
asked by 18.12.2017 / 16:20
1
answer

Calculate percentage of a salary to define the bonus [closed]

I must calculate the bonus of a user according to his salary. The salary must be paid and according to the amount entered the bonus is calculated, which must be within one of these ranges:    salario >= 100 and salario <= 200...
asked by 11.11.2017 / 04:25