Questions tagged as 'c#'

1
answer

Static variable that can not be assigned?

Good day, I have a code made by me in which I use a static variable to control certain actions in other forms, the detail is that the first time I use it it behaves as I expect, but from then on remains with the value 0 and (although I explicitl...
asked by 26.04.2016 / 21:20
2
answers

ASP.NET MVC5 How can I create a CRUD for the AspNetUsers table

How can I create a CRUD for the AspNetUsers table, creating a MVC 5 controller with views using Entity Framework This is the structure of the table: AspNetUsers This is the Model: IdentityModels namespace Portal.Models { publi...
asked by 04.05.2016 / 02:03
1
answer

Problems using a builder

I am working on a windows forms application, in which I use ninject, the problem is that in the constructor of my userControl I implement to use my CRUD operations. public partial class ucProveedor : UserControl, ICommandAction { private I...
asked by 12.04.2016 / 00:21
1
answer

Can I use an Eval () in the ItemCommand of a ListView?

What I want to do is a button that edits me by SQL , and I have that, but I need the ID of the row to edit (I extract it from with Eval("id") of listview1 ). I have a ListView that within ItemTemplate there is a...
asked by 23.12.2018 / 04:23
1
answer

how to consume delphi dll in c #

I have a delphi function that I export as dll, here I leave my code: library MdEncDec; uses System.SysUtils, System.Classes, Bcrypt; {$R *.res} function EncryptWord( value: PChar ): ShortString; stdcall; export; var BCRYPT1: TBCRYPT...
asked by 07.11.2018 / 19:24
1
answer

Does not show the value of an XMl node

I am reading an xml where I need the code of the received message, for this I did in one part of the code this: string responseValue; while (reader.Read()) { if (reader.Name == "ns2:Response") { if ((reader.NodeTy...
asked by 14.11.2018 / 16:46
1
answer

Help - I can not send object of the view towards the controller arrive null attributes

I have a problem I try to send an object in javascript to my controller, the problem is that the controller receives as a list attribute and this list contains another list as an attribute. I think the problem is that I do not send or do n...
asked by 25.10.2018 / 18:58
2
answers

Problem with combobox selecting the Index c #

Well the following happens I have 2 ComboBox with names of countries then let's say the following a trip from Spain to Germany worth 800000 vice versa is worth the same so I have it like this if(combo1.Selectedindex==1 && comb...
asked by 23.09.2018 / 05:33
1
answer

I can not access objects that I saved in a list in C #

I was recently trying to learn C # and I found this problem. - Create a class called person with some attributes. What I want to do is save all the "people" that the user loads the system into a list to then do things with this information, but...
asked by 01.10.2018 / 00:44
1
answer

I can not define "client" signalR

I am starting to work with signalR but I have an error (I have seen several answers on the web but none has helped me), I have the following files peopleHUB.cs using System; using System.Collections.Generic; using System.Linq; using Syste...
asked by 27.09.2018 / 20:49