Questions tagged as 'c#'

2
answers

The SMTP server requires a secure connection or the client was not authenticated

I'm having the following error when working with SMTP and MailMessage in C #:    The SMTP server requires a secure connection or the client was not authenticated. The response from the server was: 5.5.1 Requested Authentica...
asked by 03.10.2015 / 02:06
2
answers

How to remove spaces at the beginning and end of a string?

How to remove any number of spaces at the beginning or end of a string in C #?     
asked by 03.05.2015 / 18:13
1
answer

What is a POC in C #?

I received a request to do a POC of email, but before doing so I would like to know what a POC is in C #. If there is content on the internet for the same. Q: I do not want the solution, I just want to know what it is to search.     
asked by 13.04.2015 / 21:17
2
answers

Change foreach by for

I need to change the following foreach() to for() . The problem is that instead of arrays the loop runs through a dictionary. This is the code I want to transform a for() : foreach (var joint in body.Joints.Values) //transf...
asked by 16.06.2015 / 17:20
3
answers

How to transform a bool into int?

I'm trying to do the following: if the guess value ( _TextValPalite ) is enabled then it will check if that number is not different from a minimum value and a maximum value. Ex: between 1 and 10 I can write 5, but not 11. if(_TextValP...
asked by 20.05.2016 / 14:45
1
answer

What is Array.GetLength for?

To know the size of a vector, I can only use nomedovetor.Length , right? I saw an example in a for structure, where GetLength(0) or GetLength(1) was used to capture the dimensions of a array of rows and columns....
asked by 31.05.2015 / 16:18
2
answers

Asp.net WebForms. Timeout error exceeded in SQL Server. How to solve?

In an ASP.NET WebForms application that uses SQL Server 2008 a search field that works with AJAX requests method asmx . To avoid mass requests I added a delay method in the keyup method of input $("#txtPes...
asked by 20.08.2014 / 22:19
2
answers

Calculating the multiple of 10 greater than or equal to a value

Use module 10; Example: 7 4 8 9 3 1 0 7 2 <== Dados x x x x x x x x x 2 1 2 1 2 1 2 1 2 <== Peso = = = = = = = = = 14 4 16 9 6 1 0 7 4 <= Resultado 1+4=5 1+6=7 //resultado da multiplicação, cujo v...
asked by 24.02.2015 / 14:29
1
answer

Concatenation of two linked lists

The problem is:    Write a program and make a function to concatenate two lists of integers in a third list that should be returned by the function, in C #. My only question is how to concatenate the list. Code of the class that repres...
asked by 01.09.2017 / 12:36
1
answer

Error doing UPDATE when I set varbinary variable to 'null'

Follow the code below: var file = Request.Files; var list = new List<byte[]>(); for (int i = 0; i < 4; i++) { if (file.Count > i) { list.Add(ConvertTo.Bytes(file[i])); continue; } list.Add(null); }...
asked by 13.11.2017 / 21:21