Questions tagged as 'c#'

2
answers

Does not show percentage calculations

I'm starting in C # and I have a problem that I can not solve ... I need to take the percentage of sale of three products (1,2,3) of the total. I do the corresponding operations and I return on screen a value 0 in each of the operations. E...
asked by 07.04.2018 / 21:50
2
answers

C # - How to convert keyboard string data to Char?

Good community! I am new to the C # Language and I am doing a program where 3 phenotypes are created (ie 3 vectors, each size 4) where 2 are father and mother, of these 2 the child has to be generated (the 3rd vector) , the user will have to...
asked by 28.04.2017 / 03:41
1
answer

C # - Auxiliary copy of an arraylist

I have to make a selection of things, that is, I have {"A", "B", "c"} when I select one of the elements, this has to be accommodated in another new array that shows me the selected elements, for example I select "A" and this would be like this {...
asked by 29.06.2017 / 15:57
1
answer

Can not find a part of the path

Good morning everyone, again I need your support, since when trying to create a text file by means of C # and save it on a server, which I access by means of a network unit it generates this exception    Unable to find a part of the path...
asked by 25.11.2016 / 18:54
2
answers

The input string does not have the correct format. C # SQL

I have an error, as I mention in the good title it turns out that I'm doing a webform in c # and when executing it I get that error Here my code: public void Ordenes(int ID_Orden) { conectar(); consulta = "P_SANCHEZ_ORDEN"; comando...
asked by 01.12.2017 / 09:04
1
answer

C # Math.Round (). Only one sentence works for me.

Why does the first rounding statement work for me and the second does not? //Esta Funciona decimal discountAmount = Math.Round(subTotal * discountPercent, 2); //Esta no funciona decimal discountAmount = subTotal * discountPercent; Mat...
asked by 29.03.2017 / 04:12
2
answers

Downloading .CSV file in firefox does not work correctly with web application

I have a web application using aspx and with C # code. I am using HttpResponse to be able to download the result in a CSV file. When I use Chrome it downloads without problems with the extension .csv. The problem is when I use FireFox,...
asked by 10.02.2016 / 20:15
4
answers

How can I attach a PDF file to a DB record in SQL with C #?

The need I am having is to know if there is any possibility of attaching PDF files or any type of file to a DB record in SQL Server 2008 R2 from a C # application made with VS 2012.     
asked by 09.02.2016 / 23:41
1
answer

C # - A NULL object occupies memory?

Could someone tell me if a NULL object occupies memory? I have the following Scenario, I have a class A , B and C , and class B and C is inside the class A , then how would the memory be in these 3 scena...
asked by 09.12.2016 / 21:53
1
answer

Scaffolding with Asp.net 5

I have been working recently with asp.net 5, in addition to the new features it has and the improvements it makes I can not find the way to do scaffolding as it was done in asp.net 4. Is there a functional and stable add-on for an asp.net 5 p...
asked by 02.12.2015 / 16:57