Questions tagged as 'c#'

0
answers

Linq query. Orderby [closed]

Good day, I am starting to use linq and when I execute my query. This takes up to 1 hour. Does anyone know how I can optimize it? if (db.GpsInfo.Any(i => i.device_id == id)) { var gpsinf = db.GpsInfo...
asked by 14.06.2018 / 18:08
2
answers

Get the value of an input button

I have dynamically created buttons, and I wish that when you click on them you get your value to be able to interact with it. @for (int i = 0; i < pagesMax; i++) { <input type="button" value=@(i+1) class="bottom" id="id" />...
asked by 25.06.2018 / 21:30
1
answer

Error with the BioMini Plus 2 fingerprint reader

I recently made a fingerprint reader for the company where I currently work. Use the Bio Mini Plus , the example code worked correctly, and all good, as we expanded as a company, bought new equipment but these are Bio Mini Plus 2 and boot the...
asked by 12.06.2018 / 22:21
0
answers

PDF with contents of a div in c #

I want to generate a pdf with the contents of a div. My div is filled dynamically, 21 codes are generated in a single sheet but wanting to generate more codes does not generate a second sheet. I pass a fragment of my code. <script type=...
asked by 13.06.2018 / 00:31
0
answers

Help generating a table to capture information wn c # mvc

The problem that I present is the following. 1.- In a View I have to capture fields for two models, then what I do is the following. in the index actionresult, in order to generate the model I occupy the following. var user = db.MtoUsuar...
asked by 26.06.2018 / 16:38
1
answer

C # Selenium - how to detect that authentication has been successful

How can I know when the authentication is successful after passing the username and password? I would like to stop the execution and show once the connection was successful. This is my code? driver.Navigate().GoToUrl("MiURL"); var wait =...
asked by 09.06.2018 / 16:32
1
answer

how can I save all the data from a DataGridView in a txt file in C #

I already try to do it but it only saves me the first line (that of the titles) and I need to start saving from the second line to the bottom. this is my code: private void btnguardar_Click(object sender, EventArgs e) { StreamWriter esc...
asked by 09.06.2018 / 10:48
1
answer

test events during scene execution

I have two scripts: life: assigned to a gameobject Player StatusController: assigned to a panel where I have two images, one for life and the other for mana The life script has an event and its delegate, so that when the character's "li...
asked by 09.06.2018 / 10:28
2
answers

Does not show the form when compiling

I have this code below. It is only a Form and a Label . You have to alter the colors over time of% co_of% seconds, in this example I put% co_of% ms to see the change. As long as 0.05 is white, 500 has to be black, then...
asked by 08.06.2018 / 04:43
0
answers

problem "same name are not supported" c # [closed]

Good people I have a problem to be programming in C# to fill the form of poles I get an error Code using System; using MySql.Data.MySqlClient; using System.Windows.Forms; using System.Data; namespace CapaDatos{ public c...
asked by 24.05.2018 / 17:41