Questions tagged as 'c#'

2
answers

Problem retrieving null Data for a DataTable in C #

I'm working with C # and the PostGreSQL Database, I have a field of type Date where it can be filled in dd / mm / yyyy or empty null. the same problem is related to any field of the table, if it is empty, even if it may be, the error occurs....
asked by 22.03.2017 / 22:27
1
answer

How to access a list of another class in C #

I'm trying to access the ContactList of the Contact class in the ContactList class to view. The problem is that although the list is populated in Contact, it is empty in the Contact List. public class Contato { string N...
asked by 31.10.2015 / 14:20
1
answer

How to update the value of a cell based on another in the Grid View WPF

I have the following Grid, I would like to know how can I do so that when I leave the Gain or Spend field it updates the Total? If there is another way to do it, I'm happy to meet you. Total = (Gain - Expense) private void txtGanho_L...
asked by 09.11.2015 / 18:46
1
answer

How to use the @Html.ValidationMessageFor to change the class of the text box

I bought a bootstrap template, the validation of the controls is done by a class that leaves the controls red. This would be the form-group has-error classes Except that I've never used it that way, I'm used to using the code it genera...
asked by 21.10.2015 / 02:52
2
answers

asp.net - Prevent consecutive button clicks

Good afternoon. I have an asp.net webform application, and am having the following problem. In a certain part of the system, the customer has two buttons to navigate between editions of a magazine, going to the next and previous. This work...
asked by 23.10.2015 / 21:31
1
answer

Invalid Date and Time in the signature using A3 digital certificate in C #

I'm having a hard time getting the day and time to digitally sign a PDF document for P7S. Follow the documentation: link There are also references on this site: link Someone has already gone through this and can help me?  ...
asked by 07.06.2018 / 21:23
4
answers

Get logged in to Asp.Net Core 2.0

How do I get the User that is logged into the class? I'm trying this way: public class Teste { private readonly UserManager<Usuario> _userManager; public Teste(UserManager<Usuario> userManager) { _userMan...
asked by 07.06.2018 / 20:11
2
answers

WebClient drops a wrong string

I'm trying to create a virtual intelligence system, and hosted the language files in my FTP. These files are from a language I made myself, called SVDB, and hosted on FTP, and when I download in the application the text file it comes with HTML....
asked by 02.01.2016 / 22:43
1
answer

DataGridViewComboBoxColumn loses selected value

I have a DataGridView and bind it through a list. So far so good ... Now I want to add a combobox (DataGridViewComboBoxColumn) dynamically based on another list. In the first line of code I bind my list perfectly. Below it I have the code...
asked by 28.07.2015 / 19:55
1
answer

Remove header return Owin WebApi

A simple return query to my REST service yields the following answer: { "Id": 1, "Descricao": "TIROLESA DE AÇO", "Und": "UND", "Fabrica": "STARROW", "Estoque": 9, "Preco": 0.39 }, However, querying with more than one object star...
asked by 01.08.2015 / 04:10