Questions tagged as 'c#'

1
answer

Stack overflow in the following program

you will see, we have a project for class in which we have to work with functions and there are different functions for each utility of the program, convert from binary to decimal, hexadecimal ... etc. The fact is that the functions correctly do...
asked by 24.02.2017 / 20:43
1
answer

How to refactor this IRC data analyzer?

I have this method monster that has 1500 lines of code full of conditions and cases. Method (You did not copy the method here because it will demand all the screen and it would be annoying to scroll - The link is fixed to a commit so that...
asked by 04.03.2016 / 13:51
1
answer

Visual Studio - Entity Framework

Does anyone know why I can not change the inherited provider option? I need to put it in true, like the project on the right and it appears blocked. Thank you in advance.     
asked by 28.11.2018 / 20:29
1
answer

@ Html.DropDownList

good day. I am currently working with .net and I have problem I want to send information to a method of a controller by means of a @ Html.ActionLink , this method asks me for two values which are the LevelId that I have no problem in passing...
asked by 28.11.2018 / 16:32
1
answer

Where to place the Data Annotations?

Just in case there is a problem with concepts, I define: Model: = The class that establishes the Tables of the database. ViewModel: = The class I use to send to the Views (so as not to pass the complete Model). My question is this: T...
asked by 15.11.2018 / 22:41
1
answer

what is the best way to upload an excel file [closed]

I must upload an excel file (office 2010 version) to a sql server database with a system created with asp.net (c # vs2012) I've been seeing on the internet, and I'm a little dizzy because I've seen a lot of methods, but I do not know why to d...
asked by 14.11.2018 / 19:10
2
answers

MySQL query from C # returns InvalidOperationException

Thanks to the users I managed to establish the connection to my MySQL database from C #, but now another problem arose. I just want to get a DataSet where I can then read the data, but at the moment the function finishes, it always returns Inval...
asked by 14.11.2018 / 20:12
2
answers

Validate if an image name exists in a [closed] path

I am trying to validate if an image name obtained from my database exists in a directory. Example: if(imagen001 ==ruta\xx\imagen001) { mensaje: Si tiene imagen } In this case I will have many image names in the database, as well as in my im...
asked by 15.11.2018 / 20:24
1
answer

Add an object to a field of a DataTable c #

I have the following datatable with a DataRow DataTable InfoHDVIndicador = new DataTable(); DataRow vlrInd = InfoHDVIndicador.NewRow(); with 18 columns, one of them is: /*18*/ InfoHDVIndicador.Columns.Add("FuentesArray");...
asked by 05.12.2018 / 16:47
1
answer

Help in procedure or function error ... expects parameter @ ... which was not supplied

MY PROCEDURE IS: ALTER proc [dbo].[spinsertar_detalle_ingreso] @id_detalle_ingreso int output, @id_ingreso int, @id_producto int, @precio_compra money, @precio_venta money, @precio_especial money, @precio_especial2 money, @stock_inicial...
asked by 24.12.2018 / 05:03