Posts by Jothaz • 1,924 points
56 posts
-
0
votes1
answer253
viewsQ: Table with multiple Radio Button - recover Vue values
I have the following screen: Who are basically disciplines with their classes. I’m using Vuejs, where I have an object with JSON with a list Disciplines containing a list of id classes. The screen…
-
0
votes1
answer52
viewsQ: Promise Javascript
I have a scenario where I make several Ajax calls to a Webapi and with the return I load controls from an application. I would like to create a unique method to call the API, which would receive a…
-
0
votes0
answers129
viewsQ: How to Model Tables to Store Tag
I have an SQL Server database where I have a table of videos linked to various tag s. How is done here in the forum where each post is linked to various tags. Best practice for modeling the…
-
0
votes1
answer71
viewsA: Cordova error while running Ajax call
The problem was in a firewall rule that was blocking server packets. Right the rules of the firewall worked.
-
0
votes1
answer71
viewsQ: Cordova error while running Ajax call
I have a Cordova 7.0.1 application that requests a method from an Asp.Net MVC Web API 4.6 website. When the call is made on the device, Cordova run Andoid, execution of the method returns error. If…
-
1
votes3
answers641
viewsQ: Javascript or jQuery - Remove attribute pseudo elements
How, via Javascript or jQuery, I can remove or change to None the value of an attribute content of the css below: .btn-group-vertical>.btn-group:after, .btn-group-vertical>.btn-group:before,…
-
1
votes0
answers261
viewsQ: Apache does not recognize virtual directory
There is a domain that we have entered into our DNS pointing to our Linux server where we have Apache/Mysql/PHP/Wordpress. I created the Wordpress folder in /var/www with the name my-site.com.br. I…
-
1
votes2
answers84
viewsQ: Comparing two objects and copying conditionally
I have the following classes: public class Pessoal { public int ID { get; set; } public string CPF { get; set; } public string PIS { get; set; } public string NOME { get; set; } ... ... ... } public…
-
0
votes1
answer70
viewsQ: Wordpress login with Webservice (AD)
I have a PHP page that connects to a Webservice and performs user validation in AD. I would like this page to be called when typed the URL of the site made in Wordpress, because in it I create…
-
0
votes2
answers93
viewsQ: Nodejs replace windows terminal window
I remember installing the Nodejs on a windows machine and the terminal window (Command Prompt) has been replaced by a window fullscreen. If I’m not mistaken I had an option during installation. I…
-
0
votes2
answers793
viewsQ: Save XML from a List
I am developing a C# Console Application that loads a List and then writes an XML file with the contents of this List. Class public class Equipamento { public int Id { get; set; } public string…
-
0
votes1
answer52
viewsA: Visual Studio 2015 does not trim ASP.NET Preview Templates
I was able to solve the problem by clicking on the notifications icon and updating Visual Studio by clicking on the links available.…
-
0
votes1
answer52
viewsQ: Visual Studio 2015 does not trim ASP.NET Preview Templates
I installed the Pro version of Visual Studio 2015 on Windows 10, to test. When creating a project you should open a screen with the options as in the image below: But open like this: Does not show…
-
1
votes1
answer730
viewsQ: Prevent duplicate entry into a list using Angularjs
HTML: <div class="container" ng-controller="ListaComprasController"> <div class="row"> <div class="page-header"> <h1>Lista de compras</h1> </div> </div>…
-
1
votes1
answer62
viewsQ: Recover Classname using . Css() from Angularjs
I have a page that displays several divs that when clicked retrieves and displays the attributes used to create them: float, border, width and etc. I’d like to retrieve the classname, but I’m not…
-
1
votes3
answers5147
viewsQ: Angularjs vs Jquery input mask
I have a ng-repeat and I need the input field to have the following format: 9.999.99 Code: <tr ng-repeat="item in estado.tabela | orderBy:'ano'"> <td>{{item.ano}} </td> <td>…
-
1
votes2
answers1688
viewsA: Display control in Partial View conditionally
After a few tests I managed to solve the problem as follows. In the View call to Partial View with a parameter that defines whether or not the control will be displayed. To display:…
-
2
votes2
answers1688
viewsQ: Display control in Partial View conditionally
I need a control of a Partial View is displayed according to one condition. For some views a button would appear for others not and this would be set through a parameter in the call of Partial View.…
-
2
votes1
answer552
viewsQ: Required Errormessage dynamic content
Using Asp.Net MVC 5 need to create a required message with the following format: "Required field! [Social Reason]" Normally I would do so: [Required(ErrorMessage = "Campo de preenchimento…
-
2
votes1
answer148
viewsQ: Testing of variable content
Using ASP.Net MVC and Angularjs I tested the contents of a view thus: $scope.estado.ldRedeBasica = @(Model.ldRedeBasica == null ? "[]" : Html.Raw(Model.ldRedeBasica)); Only it returned the following…
-
1
votes1
answer529
viewsQ: Radio Input with default value
Using Asp.Net MVC 5 with Angularjs want a input radio come checked by default. According to the link: How to select a radio button by default? Assign an initial value to radio button as checked Just…
-
1
votes3
answers995
viewsQ: Disable all Dropdownlist Options s less what is selected
How to disable all options of a combo minus the selected value using Jquery. As in the image below: Follow the HTML in the image: HTML <!DOCTYPE html> <html> <body> <select>…
-
1
votes2
answers6021
viewsQ: Button/link inside a view redirecting to another view
I have the following address for a view: http://localhost/Configuracao/Details/1 Where create a button/link that redirects to another address from another view as follows: <a…
-
2
votes1
answer735
viewsQ: Regularexpression only letters in the Model
Using the following Regularexpression in the Model: [RegularExpression(@"^\d+$")] public int ano_da_configuracao { get; set; } I get the following result: I tried as follows to accept only letters:…
-
6
votes3
answers1799
viewsQ: What a difference between Dropdownlistfor and Dropdownlist
What a difference between Dropdownlistfor and Dropdownlist? And when and which to use?
-
1
votes2
answers1110
viewsQ: Disable Dropdownlist in View
Class public class ConfiguracaoEstado { .... [Required(ErrorMessage = "Selecione ao menos um estado.")] [Display(Name = "Estado")] public int EstadoID { get; set; } ... } Controller private void…
-
2
votes2
answers196
viewsA: Error closing Forms
Change your code as the example below if (MessageBox.Show("Deseja realmente fechar o sistema?", "Atenção!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) != DialogResult.Yes) { e.Cancel = true; }…
-
65
votes6
answers66144
viewsQ: Type of the CPF or CNPJ field in the VARCHAR or INT database?
What type of CPF or CNPJ field in the database VARCHAR or INT? I’ve seen some posts suggesting using INT to optimize performance in the event of JOINand filters. If you have 0 the left is only…
-
1
votes1
answer185
viewsA: Normal Forms Data Modeling
Suggestion of how to proceed: Do the bulk insert of the entire excel file, including with the Product Description for a bd table. Create the Product table with product descriptions and then add to…
-
7
votes1
answer1621
viewsQ: What are web Workers and how to use them
Through researches I understood that Web Workers allow the simultaneity of processes in Javascript. It would be like firing a thread Javascript that updates the View. It can be considered that it…
-
1
votes5
answers25936
viewsA: How to pass a list of values to a Stored Procedure?
Here is a complete and commented example of how to simulate the passage of a vector or array as a parameter for a Stored Procedure. CREATE PROCEDURE SIMULA_ARRAY_COMPLETA @SCOCPFCNPJ VARCHAR(8000),…
-
1
votes2
answers104
viewsQ: Batch deletion using Linq
I have a table, which is used in my Model.edmx, with the following fields: ID ID_PROJETO ID_ITEM VALOR How to convert the SQL below into a Linq expression? DELETE FROM TB_RECEITA WHERE ID_PROJETO =…
-
0
votes2
answers1026
viewsQ: Move image (Picturebox) in form
How to move an image in a windows form. I used the following code: private void button1_Click(object sender, EventArgs e) { int tamanhoFundo = picFundo.Width; int x = myPic.Location.X; int y =…
-
0
votes2
answers2851
viewsA: Enable/Disable Button according to Checkbox value in a Datagridview
The solution that Matthew proposed works, but you have to press the button Enter, in my case the user just wanted to click on CheckBox, then I used the following solution: private void…
-
3
votes2
answers2851
viewsQ: Enable/Disable Button according to Checkbox value in a Datagridview
A form in an application Windows Forms with C# displays a DataGridView with Checkbox. When one of Checkbox is marked I want to enable a certain button. If any Checkbox is marked I want to disable.…
-
22
votes3
answers57329
viewsQ: Format double with mile and decimal
I have the following value: 43239.110000000001 I used this command: txtSomatorio.Text = String.Format( "{0:#.#,##}", somatorio); I got this: 43239,11 How to do to display like this? 43.239,11…
-
2
votes1
answer216
views -
2
votes1
answer309
viewsQ: VS 2012 Bundles use or not use, that’s the question!
I’m starting in VS 2012 and between the changes appeared the bundles. I have some doubts: 1 - Is this approach worth using? Why? 2 - The bundles should even stay inside the tag ScriptManager 3 - I…
-
2
votes1
answer275
viewsQ: Check the size of`Sessions` on the server
The following method is used in a web form application to store logged-in user information: public Usuario UsuarioLogado { get { if (Session["Usuario"] != null) return (Usuario)Session["Usuario"];…
-
0
votes2
answers1253
viewsQ: How to prevent duplicate registration/name change/social reason
In a register, c# windows form, where I use CPF s or CNPJ s, which is the best way to prevent duplicate names/social reason in inclusion or change. For example it may happen that in the change the…
-
5
votes2
answers9964
viewsQ: Pivot dynamic columns
I need to display this: Thus: Following the instructions of the links s: Use PIVOT operator without aggregation I cannot place a subquery inside the IN in the PIVOT Dynamic pivot with SQL Server I…
-
2
votes3
answers1047
viewsQ: Do not allow typing space in maskedTextBox
In the windowsforms what is the simplest way to avoid typing spaces into a control maskedTextBox ?
-
1
votes2
answers406
viewsQ: Windows form c# identify which Bindingnavigator button was clicked
How to identify which option (Add new, Delete and etc) was chosen in a BindingNavigator and which method to use to capture the click.
-
1
votes1
answer133
viewsQ: Add parameters to Idbcommand
I used the method below to add parameters using the interface IDbCommand using System; using System.Collections.Generic; using System.Linq; using System.Text; using EstudoDotNet.Comum.Dominio; using…
-
2
votes2
answers546
views -
1
votes0
answers24
viewsQ: "Asp.Net Development Server Runs" does not close at the end of the run
At the end of the implementation of the Asp.Net Development Server Runs remains open in the systray. I’m using Visual Studio 2010. 1 - This is normal behavior? 2 - May cause some problem? 3 - There…
-
0
votes2
answers483
viewsQ: Match content of two objects
Use the method below to update a given table: public int alteraBem(tb_bens itemBem) { try { using (GestaoAtivoEntities db = new GestaoAtivoEntities()) { var bem = db.tb_bens.Where(v =>…
-
0
votes1
answer91
viewsA: Visual Studio 2010 Professional does not display Visual Studio Solutions
After reinstalling the Visual Studio 2010 package the option "Visual Studio Solutions" appeared again. It was some bug from the first installation.…
-
1
votes1
answer49
viewsQ: Visual Studio 2010 Outline Extension
I know there are extensions for Visual Studio 2010 that display specific Outline for each environment: C#, css/javscritp and HMTL? Are there any solutions in a single extension? Or do I have to…
-
0
votes1
answer362
viewsQ: Reference to styles and scripts in Master.Page using Resolveurl
In Master.Page I make references to styles and scripts that will be inherited by other pages through Resolveurl. <script src="<%# ResolveUrl("~/") %>Scripts/jquery-1.11.1.js"…