Questions tagged as 'c#'

1
answer

Validation of fields

How could I validate the fields below so they do not go blank, as my biggest difficulty is that two of them have Convert. NegocioFuncionario neg = new NegocioFuncionario(); EntidadeFuncionario ent = new EntidadeFuncionario(); ent.Matricula = C...
asked by 12.04.2018 / 13:35
1
answer

What is the! =?

What is != in C # and how can I use it properly? I visualized an example in a repeat structure with for , however I did not quite understand the function of it. int soma = 0; for (int i = 1; i <= 100; i++) { if (i % 3 != 0)...
asked by 05.04.2018 / 20:20
1
answer

Spring API - Properties of GcpBEDocumentoVenda do not assume my values [closed]

When I insert an order for the final consumer, I enter the name and address of the client in that document ie based on C # code using your API and from what I could understand it should be something like GcpBEDocumentoVenda invoice = new GcpBE...
asked by 04.04.2018 / 13:53
2
answers

Syntax error in sql command [closed]

I'm having a possible syntax problem with sql in my code if (tbCPF.Text != "" && tbNome.Text != "" && tbEndereco.Text != "" && tbNumero.Text != "" && tbBairro.Text != "" && tbCEP.Text != "" && t...
asked by 24.10.2018 / 06:06
1
answer

Field NullableDateTime 01/01/0001 [closed]

I have a Model field [Column("sdt_dataPagamento")] [Display(Name = "Dt. Pagamento")] [DataType(DataType.Date)] [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")] public DateTime? DataPagamento { get; set; } I...
asked by 20.04.2016 / 19:19
1
answer

Delphi = C #: Generic function to return collection bill DV

I'm having problems with a Custom Module 11 function (which correctly returns the billing slip from any bank) that I already had in Delphi, and how I need to implement it on a C # system. So I tried to make the C # version of it, but it is wi...
asked by 27.04.2016 / 00:39
1
answer

Create Folders C #

I would like to do the following. Create three folders within each other in "c:/" . Their names will be designated by textboxes and in the last, create a .doc file by taking the values of textboxes . It's for win...
asked by 24.06.2016 / 22:47
1
answer

File being used in another process [closed]

Suddenly my app started to give this error: This started this week, along with a problem that I am trying to solve in another post. I begin to think that they have correlation. This gives, I give ok and when giving F5 again it works, ie to...
asked by 20.05.2016 / 15:17
1
answer

How to call the 'OnClick' event in the code behind?

How can I call the OnClick event in code behind of a dynamically created button? I'm trying the following way, but I'm not getting it. void MontarHtml(List<DocumentoImagens> DocImagens) {...
asked by 17.11.2015 / 14:52
1
answer

Connection String C # EntityFramework [closed]

I would continue a work from home project, the Connection String that works is as follows: <add name="DBModel" connectionString="data source=PD_22;initial catalog=EXERCICIO_ENTITY_JOSEEDUARDO;user id=login;password=senha;MultipleActiveResu...
asked by 23.10.2016 / 20:26