Posts by Leonardo • 545 points
20 posts
-
1
votes0
answers71
viewsQ: Regex.Unescape() does not work
My project has a class with the type property string which receives the XML of a Tax Note signed by SEFAZ. The system must send the property as a parameter to a WebService that only returns an…
-
0
votes2
answers75
viewsQ: Get an item from a referenced list
I am trying to get the items from a generic list that I pass for reference to a class, but I only have as return the name of my project concatenated with the class. Below is a code fragment…
-
0
votes1
answer45
viewsQ: Get higher separate value according to product code in datatable
My project has a DataTable with four columns. I would like to know how to get only the items of this DataTable which, according to its occurrence, has the largest separate quantity? For example:…
-
4
votes3
answers254
viewsA: Different comments on Javascript
The 3-Bar comment can be used to identify methods. For example, in Visual Studio 2017, when typing 3 bars, the IDE automatically creates a summary where I can identify your parameters, returns,…
-
4
votes2
answers562
viewsA: Mysql alias in all Columns
Hello Rafael you can define an alias for the tables. Using your example, would do as follows: SELECT TUR.id AS turma_id, TUR.id_professor AS turma_idprofessor, TUR.id_curso AS turma_idcurso,…
-
1
votes2
answers462
viewsA: Bring today’s date records up to 1 month ago SQLSERVER
You can use the DATEADD, this query will return the date in the last month starting from the last midnight SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) - 1, DAY(GETDATE())-1)…
-
2
votes1
answer86
viewsQ: get the values of a generic list List<t>
My project Winforms C# has a form with a GridControl(gvDados) and a button Sue with an event Click(). Validation takes place in the event Click from the process button, through a method responsible…
-
3
votes2
answers51
viewsQ: Save data from a Row to an array
I’m developing a new functionality for a project Winforms in C#. Soon I developed the following method that returns itself in the component GridControl (gvDados) there is a line selected or not.…
-
5
votes1
answer645
viewsQ: Mask for formatting Textbox
I was practicing coding on a project like Winforms, A question soon arose: How to apply a phone mask on a Textbox. So the first thing that popped into my head was to use the event Keypress of the…
-
9
votes0
answers152
viewsQ: Error: Valuefactory tried to access the Value property of this instance
Every time I create any project Xamarin in the Visual Studio 2017 the following error is displayed when running the application: Erro: ValueFactory tentou acessar a propriedade Value dessa…
-
0
votes3
answers78
viewsA: Mensagebox is in loop
After some tests it was noted that the event Leave was not suitable for this situation. The alert was displayed every time this event took place and also because the default value was equal to null,…
-
1
votes3
answers78
viewsQ: Mensagebox is in loop
When starting my project WinFormsi define focus on a component lookUp Edit of DevExpress who owned an event Leave. The goal of this focus is to make target selection mandatory. The initial value of…
-
0
votes2
answers84
viewsA: Ways of connection in ASP . NET
The question is a little wide, but I believe I can help you because I went through it a few days ago. It is important to decentralize the application database. How is this done? Through Mapping…
-
1
votes2
answers304
viewsA: Why does the PHP script not run if opened by the pc, but runs if opened in localhost?
Why the browser cannot interpret a language that runs on the server side by itself. That’s why we use WAMP, XAMPP, Apache, among others. This applies to any language that makes the Server-Side.…
-
0
votes3
answers182
viewsA: Error submitting form with ASP MVC
There were two errors in my code that returned errors in the registration. The first was in the function you insert into the database: public bool CadastraUsuario(UsuarioModel Usulist) { // código…
-
0
votes3
answers182
viewsQ: Error submitting form with ASP MVC
I am facing a problem submitting a form developed in ASP MVC. By clicking the save button the following error message is returned: System.InvalidOperationException: 'Não existe item ViewData do tipo…
-
-5
votes1
answer37
viewsQ: What are the means of connections a C# application can have with SQL Server?
I would like to know what types of connections a given application developed in C# can have with the SQL Server database. Among all, which is the most efficient?
-
0
votes1
answer681
viewsQ: How to fill a Dropdownliste with ASP MVC
Good afternoon, as I can fill a dropdown with data from a database using pure Ado.net (code) and without using Entity framework? I have two tables in my bank that relate. First I must register a…
-
1
votes2
answers1767
viewsA: Mobile Cordova Geolocation
Well, first it is necessary to add to your project the geolocation plugin, after this step, you should create a file of type HTML inside the briefcase WWW this file can be filled with the following…
-
4
votes1
answer1010
viewsQ: Trigger para update before Insert
My database has two tables, notification and attendance, as shown in the image. In the notification table the default value of the status is "open". I tried to make a Rigger that updates the default…