Posts by Sérgio Lopes • 647 points
22 posts
-
0
votes1
answer21
viewsA: Problem with Binding and Caretindex
You can solve this question in two ways. Solution A You can add a default value to the property CaretIndex, as was done below. <TextBox Name="textOperadorNome" Text = "{Binding Model.Nome, Mode =…
-
0
votes2
answers160
viewsA: How not to select an element in css?
Hugo, the ideal would be for you to put the code in your question so that it can be answered. There are many ways to achieve the desired effect. Below is a way to do this. p:not(.no-bg) {…
-
1
votes1
answer261
viewsA: Update an sql column of all records
Lucas, You can update the desired field without the Where clause or you can do as per the code below, where you will have the desired effect by updating only the records you need: update Users set…
-
5
votes2
answers99
viewsA: Validation with Dataannotation
A Dataannotation Maxlengthattribute is used to limit string size. To set a range of values for integer properties, you must use Dataannotation Range, as below: [Range(18,65)] public int Idade { get;…
c#answered Sérgio Lopes 647 -
3
votes1
answer154
viewsA: Error while converting JSON
Jeff, I believe the class to which your object belongs "Contact lists" own a name property "Code". This property needs to be to type decimal to receive this kind of value.…
c#answered Sérgio Lopes 647 -
0
votes1
answer135
viewsA: C# convert Array for insertion in the database
William, I changed your code the way below to accomplish the task and resolve the issue of conversions. I modified your query to use parameters. In the loop, the values of the parameters are…
-
-2
votes1
answer64
viewsA: JQUERY, PHP, HTML 5
You must perform validation on client and server. When performing client validation, you improve the user experience with your system, since the system will inform whether Cpf is valid or not…
-
2
votes1
answer59
viewsA: How to use a hyphenated parameter in an HTML Helper?
Change your code as below: @Html.CheckBoxFor(model => model.ReceberEmail, new { @class ="form-control", @data_toggle ="toggle"}) Properties such as @data-toggle should be passed through the…
-
0
votes2
answers1207
viewsA: Left Join with three or more lambda tables
A suggestion for your case is: when using Entity-framework and want to make a JOIN with many tables, create a view and a model to map this view. In that view, the consultation representing the JOIN.…
-
0
votes2
answers268
viewsA: z-index does not change!
You can apply the rule below. div.peca { z-index: 100 !important; }
-
0
votes2
answers1003
viewsA: Report generated with reportview, directly in pdf
Yes, this is possible. In the method triggered by the print button, create a Datatable. DataTable dt = new DataTable(); After recovering the data and filling the Datatable, load the data in…
c#answered Sérgio Lopes 647 -
1
votes1
answer587
viewsA: Datetime field problem in POST ASP.NET MVC
This must occur due to the fact that your property is not nullable change your property to the code below: public DateTime? DataCadastro { get; set; } This way, your property may receive null…
-
0
votes2
answers791
viewsA: Align HTML + CSS component
Make sure the code below meets your need. #div { width: 300px; } .floatL { float: left; } .floatR { float: right; } <div id="div"> <input class="floatL" type="button" value="Esquerda" />…
-
2
votes1
answer231
viewsA: How to navigate to another page using Webbrowser?
Look for actions through the event Documentcompleted. This event is triggered whenever a navigation is completed. You can use this in conjunction with a Action, so that a method can be defined to be…
-
1
votes1
answer666
viewsA: Bootstrap Modal ASP.NET
The link <a> was without the tag closing. I removed some modal related scripts, because the trigger occurs in the link click without the need for these. Check if the change below solves the…
-
1
votes2
answers478
viewsA: Div for Name and Email Registration
You can create a Modal Window to display the registration screen without redirecting the user to another screen. Take a look at this example: Creating a modal window Below are examples of aspx…
-
6
votes1
answer78
viewsA: What "[ ]" means in the method declaration
It means that the type to be returned is a array of class elements BITalinoFrame. for example, the method below returns a array whole: public int[] ListaInteiros() { int[] lista = new int[5] { 1, 2,…
c#answered Sérgio Lopes 647 -
2
votes3
answers121
viewsA: Interesting question about inheritance and polymorphism
To understand the result it is necessary to dismember the calculation below in four parts. int r = obj1.metodoX() + obj2.metodoX() + obj2.metodoX(5) + obj3.metodoX(10, 100); Part 1: obj1.metodoX()…
-
3
votes1
answer948
viewsA: How to remove white margin from a Carousel (Bootstrap)?
The "white margin" is generated by the standard css rule of the "container-Fluid" class, which applies 15px left and right padding to the element containing that class. To remove this margin, you…
-
3
votes1
answer35
viewsA: Difference between these two declarations of immediate functions
They are just two different ways to perform the immediate execution of a javascript function without difference in performance between them. This question about which of the forms would be the best…
javascriptanswered Sérgio Lopes 647 -
1
votes2
answers714
viewsA: Can you create a menu from an image?
This is an icon used to indicate the existence of a menu, which can be easily applied in your project using the Bootstrap css framework. Bootstrap is a css you add to your project. It contains…
-
1
votes2
answers230
viewsA: Is there a difference between the use of the underscore and the . this?
this is just a pointer to your class. Through it you can see a listing of the properties and methods available in it. For the above case, you can write the second example without using this.…
c#answered Sérgio Lopes 647