Questions tagged as 'c#'

1
answer

Override static method

I do not know how to ask the question, but I'll try. I have a static method in a parent class, and I planned to overwrite it in the child classes, but from what I'm seeing here, that's not possible. I remembered a feature that has in Java, wh...
asked by 04.12.2017 / 13:03
1
answer

ListBox - Multiply values and move to another Listbox

I have 2 ListBoxes. When I pass a value to the other ListBox a screen opens to enter the amount I want from that product. That said, will get the amount * value and show in the other ListBox. CodethatloadsthelistBox:privatevoidfrmOrdem...
asked by 27.10.2017 / 18:34
1
answer

Redeem button through id

Good evening, I am developing a graph, academic work .. .. The idea is to do a "maze", so I generate the same at runtime, and I keep a "reference" of each button in a list, but I got to a point where I need to change the color of a button and...
asked by 25.10.2017 / 00:25
1
answer

Help to write to USERS and AspNetUsers at once

Help please. I lost all day redoing various parts of the system, trying a lot of different solutions but I ended up with no ideas. I have a multi-application solution. One of these applications (where I try to isolate data persistence) has th...
asked by 21.11.2017 / 23:21
1
answer

Runs splitting several times

Well guys, I'm having a problem that's disturbing me a bit, I've already tried it and found nothing that would help me. I'm searching for certain variables in a Word Template to be able to perform a replacement. The problem occurs when some...
asked by 21.11.2017 / 15:09
1
answer

connect in multiple sqlserver databases

Good Night, I'm developing a system in MVC 5 and C #, I have two SQLSERVER databases, one for Development and one for Production. Please inform me how to configure WebConfig to accept these two connections and if I need to build some class th...
asked by 13.11.2017 / 02:16
1
answer

Error selecting part of a string in select of an entity using Entity Framework and Linq

I need to mount a drop-down with part of the name of a project, which is very large in the database, going up to 250 characters. For this I made a selector like this: var lista = _projetoAppServ.ObterTodos("Descricao") .Select( a => n...
asked by 30.11.2017 / 13:30
1
answer

Download all files from a remote FTP directory

I would like your help because I am making an application that downloads files from a remote ftp directory. Could you pass the code to implement in C # please? Connect to remote FTP and copy all files from the directory to a local folder o...
asked by 14.11.2017 / 18:35
1
answer

Problem with DateTime field in ASP.NET MVC POST

DateTime field getting 01/01/0001 00:00:00, not the date before POST.    DataTime Field with DataAnnotations (MODEL) [Required(ErrorMessage = "Campo Data de cadastro é obrigatório.")] [Display(Name = "Data cadastro")] [...
asked by 20.10.2017 / 16:32
1
answer

Get row and column item from a dynamic html table

Good morning, I set up a dynamic html table with information from a SQL table. In the following structure: Thistablehasafilterfieldoftheagencieslistedcode: <script> function myBusca() { var input, filter,...
asked by 20.10.2017 / 15:28