Questions tagged as 'c#'

0
answers

Help with filling gridview c # MVC

It turns out that I have an unsolved problem, I have a test project which shows me a field after assigning a value, so I assign a value to the field that shows in a gridview, this is in windows forms, when I pass it to seen why it should be web,...
asked by 03.12.2018 / 15:34
1
answer

Dynamic CheckBox C # Events

How can I do events in a checkBox set that I am creating, that is, I have my code: for (int i = 1; i < NcheckBox; i++) { CheckBox cbxN = new CheckBox(); cbxN.Text = nameCheckbox[i]; cbxN.AutoPostBack = true; cbxN...
asked by 04.12.2018 / 00:36
0
answers

Error adding matrix

At the moment of entering a number of rows and disparate columns and pressing the button to add the program closes Random objnum = new Random(); int[,] matriz; int numeros, suma, x, y, suma1, suma3; public Form1() {...
asked by 04.12.2018 / 19:21
1
answer

Mix CSS with ASP c #

I would like to know if it is possible to mix C # code with css in a style sheet, at this moment I have this: :root { --fond_Size: 14px !important; --title_Size: 20px !important; --padding_span: 5% !important; --fond_Size_Popup...
asked by 04.12.2018 / 01:15
0
answers

Mono.dll caused an Access Violation using Npgsql

Using Npgsql and Unity 5.6.2f1 to connect with PostgreSQL and the following code: public bool OpenDB() { string connectionString = "Host=**;Port=**;Database=**;Username=**;Password=**"; // IDbConnection dbcon; ## CHANGE T...
asked by 03.12.2018 / 14:17
1
answer

Automapper ignore null values

I'm using AutoMapper, the point is that I do not want to map the null values, since I want to keep the value of the target entity members. I've done it this way but it does not work. opts.Condition((source, dest, sourceMember, destMember)=>...
asked by 06.12.2018 / 00:44
0
answers

Help, I can not do the following, show a waiting form while executing a process that contains another form, using backgroundworker

I wanted to see if they could help me I have tried several options but I still can not solve it, the problem is as follows. I have a% main form1 that is a mdi , in a bar it is a button that makes the call to another form2 and ad...
asked by 01.12.2018 / 16:13
0
answers

Detect key pressed out of form c #

I was wondering how a certain key could be detected, for example [F1] , but outside the form. Since my main idea, is that each time you press that key, make a screenshot and upload it to an FTP. However, I run into the problem that I do...
asked by 01.12.2018 / 23:10
1
answer

MVC view is not rendered in Asp.net

I have a view that is not rendered, but on the contrary, it shows the data of a viewmodel that I am passing through the controller to fill a dropdownList. This is my controller public ActionResult Inicio() { int KamId =...
asked by 30.11.2018 / 18:52
0
answers

Use fields defined in EDM class improper of the database

I'm doing a procedure with which I want to transfer series to a place and show where they moved to perform the action of showing the data, I use a datagrid and the following query private void CargarGrilla() { decimal id...
asked by 30.11.2018 / 15:17