Questions tagged as 'c#'

2
answers

migrate from visual studio 2012 to visual studio 2015

Good afternoon in advance, thank you very much for any collaboration, I tell you I had a project in vs2012 and I changed to vs2015 but the only mistake that I get after migration is a problem with ReportViewer Microsoft.Reporting...
asked by 28.10.2016 / 18:22
4
answers

Doubt c # javascript

So far to do a login using a database to verify it, what it did was that with javascript validate the form information, to then send the data, which through php, to a query to the database, which will corroborate the data entered by the...
asked by 15.12.2016 / 01:04
1
answer

Deserialize JSON with Newtonsoft for different answers

I have the following problem. I make a request rest to a service, e.g. link the answer is like this if it exists: { "Id": 7113, "Name": "Ted Norris", "BirthDate": "1977-05-13T00:00:00", "Phone": "488-555-1212", "Address": { "St...
asked by 16.03.2017 / 21:55
2
answers

Optimize a list of SQLServer in C #

I have to list about 900000 records from a database, and then do a tour in C # with a FOR, but being too many records I get the error of waiting time exhausted. Is there any way to accelerate this? This is my SP in SQL: The result is 870000 reco...
asked by 20.11.2018 / 19:50
1
answer

Pass a data from a datagridview to another datagriedview

what I want to do is that by clicking on the button to accept, pass the selected data from the checkbox to the second datagrid view using Parrot.Kitchen.App.Controller; using Parrot.Kitchen.Business.Entities.Model; using Parrot.Common.Custo...
asked by 24.12.2018 / 20:29
1
answer

Insert ItemArray in SQL Server

I am trying to insert the record by the Excel registration to SQL, I have already loaded my excel, I go through it with a foreach in the following way: SqlConnection cnn = new SqlConnection(); cnn.ConnectionString = "Data Source=Localhost;Init...
asked by 28.12.2018 / 00:48
1
answer

difference between [] [] and [] in multidimensional arrays in c #

I would like to know if anyone knows what is the difference between these two ways of declaring multidimensional matrices in c# . string[][] m = new string[2][]; // primera forma string[,] m2 = new string[2, 2]; // segunda forma And...
asked by 10.05.2016 / 09:13
2
answers

Application optimization doubt

I did a process in c # which is running all the time, the problem is using a lot of CPU percentage, does anyone know how to reduce that percentage? do { try { LogClasifica("Confi...
asked by 09.03.2016 / 20:11
1
answer

c # directive for linq

I'm implementing a function that brings me the different years of a set of dates and I use linq, it's something like this: var uniqueYears = Entidades.Ventas.Select(s => s.Fecha.Year).Distinct(); Send me an error in .Year I am...
asked by 21.11.2018 / 13:29
2
answers

Modify DropDownList MVC using Users?

I have these models in my users, febriles, districts and services, users and febriles data is required for districts and services, I have a dropdownlist with the following jquery and json script: @Scripts.Render("~/bundles/jqueryval") <scri...
asked by 22.11.2018 / 02:00