Posts by NIZZOLA • 151 points
14 posts
-
2
votes6
answers1784
viewsA: Quantifying negative values in an array
There are several possible solutions, if the statement asks only the amount of negative numbers, the solution below is simple and does what is asked, without displaying a console with the number…
javascriptanswered NIZZOLA 151 -
0
votes1
answer38
viewsA: How to create an array with strings in the amount of values contained in another array
I do not know if it is exactly what you asked, because I did not understand what I wanted, but in this case the result on the screen is this ['A','B','C','D']['A','B']['A']['A'] <?php $A =…
-
2
votes3
answers86
viewsA: Deserializeobject Json
Try this, because the Json object does not match the structure you created: var test = JsonConvert.DeserializeObject<Retorno>(jsonText); with the classes below worked public partial class…
-
0
votes1
answer141
viewsQ: Error when selecting part of a string in the select of an entity using Entity Framework and Linq
I need to assemble a Drop-down with part of the name of a project, which is very large in the database, goes up to 250 characters. For this I made a selector like this: var lista =…
-
2
votes4
answers10625
viewsA: Constructing SQL tables - use or not fields with Not Null?
In case your field is of type "Not Null" you must always assign a value to it before saving, even if it is an empty value only the '' quotes in the case of characters. But there is also a use of…
-
0
votes2
answers1362
viewsA: PHP Current business days/ Missing days
The date function allows you to return numbers according to the day of the week, then just assemble a repeat structure (for/while) that loops and identifies the days. Follow an example to know the…
-
0
votes1
answer66
viewsA: HTML code reading error in Mail.php function
Assign the variable like this: $var = '<!DOCTYPE html> <style> table { border-collapse: collapse; } td { padding: 5px 10px; font-family: arial; font-size: 14px; } h2 { padding: 0;…
-
0
votes1
answer808
viewsA: Format dates in sql
Although the way you are passing the parameters is not the most indicated, you should send the data in your data types without "tostring" and write according to the method used below. But if you…
-
1
votes2
answers1186
viewsA: Entity Framework: Object Update Error
Your update is not recognizing the object as an existing object. I had the same problem other times, there are tips on another post.…
-
0
votes3
answers1454
viewsA: sending email by smtp
It tries to use this function ready that I use and does not give error, only if it is problem of its user. public class EmailServerAccount { public string EmailOrigem { get; set; } public string…
-
0
votes3
answers1454
viewsA: sending email by smtp
Change your source to capture the error message and understand where the problem is according to the modification below, another thing, check the port and ssl configuration, because for what I have…
-
1
votes1
answer56
viewsA: Error while Logging In
When using your class in this way without a viewmodel, fields such as Dataregistration are mandatory not optional and Isvalid will return false as they were not received because they do not exist in…
-
0
votes1
answer55
viewsQ: I created my project, I’ve been editing every day, and recently out of nowhere he failed to recognize an existing namespace
I created my project in Visual Studio 2013, I’ve been editing every day, and recently out of nowhere it failed to recognize an existing namespace. The namespace appears in red with the message "The…
-
0
votes2
answers799
views