Posts by hard123 • 2,329 points
176 posts
-
0
votes2
answers1487
viewsQ: Log4net.dll file not found
All these dlls are in the bin folder and have been referenced in the project, the project is compiled without errors: <compilation debug="true" targetFramework="4.0"> <assemblies>…
-
0
votes1
answer143
viewsQ: How to format Webgrid Currency column?
How to format the column Valor of Webgrid ? Example of 3000,000 for 3,000.00 ? @grid.GetHtml( tableStyle: "webgrid", headerStyle: "header", alternatingRowStyle: "alt", selectedRowStyle: "select",…
-
0
votes3
answers780
viewsA: How to send dynamically created fields via JSON?
It may not be the best solution, but it met my needs: $("#btnCadastrar").on("click", function () { var _movimentacao = { "MovimentoFinanceiroID": $("#MovimentoFinanceiroID").val(), "NumDocumento":…
-
0
votes3
answers780
viewsQ: How to send dynamically created fields via JSON?
How to send via JSON fields input dynamically created, for example: The user type in a text field number 4 and the function creates 8 input fields, or type 5 and the function creates 10 input…
-
1
votes1
answer46
viewsQ: How do I add a month to the current date with jquery
Good afternoon, How do I add a month to the current date: Example the user types 4 in the input qtdParcela: var _data = new Date(); $("#qtdeParcela").on("change", function () { var _qtde =…
-
0
votes1
answer178
viewsQ: Error when publishing Site
The system was working very well, I made some changes and after I climbed to the server this error occurs, can anyone tell me what it would be ? The system is MVC with VS 2013. Note: I went back to…
-
1
votes1
answer206
viewsA: Jsonresult request with decimal type
Solution: var _inss = $("#inss").val().replace("%", "").replace(",", ".") == '' ? "0.00" : parseFloat($("#inss").val().replace("%", "").replace(",", ".")).toFixed(3); and then:…
-
1
votes1
answer206
viewsQ: Jsonresult request with decimal type
Because when sending a request with a decimal type (3) the "Point" is deleted, see in the field INSS which is a decimal value, for example: I type 1,69 when making a bind in the template the stitch…
-
0
votes0
answers281
viewsQ: Increase the size of the Select2 plugin combobox
I need the plugin Select2 combobox (https://plugins.jquery.com/select2/) above is with the same effect of the combo that is below according to the image, that is, increase the width size without…
-
0
votes1
answer931
viewsQ: Grab the selected item from the Select2 plugin and make a Submit
How to get the selected item from the Dropdownlist plugin Select2 (https://plugins.jquery.com/select2/), and send to a Controler via an Submit button ? CANVAS CONTROLER public ActionResult…
-
1
votes1
answer787
viewsQ: Allow typing inside a Dropdownlist and run the search
I have a DroDownList that lists Patients' names. I need to allow the user to type the patient’s "Name" directly into the Dropdownlist and when typing the Patient Name the system will perform the…
asp.net-mvcasked hard123 2,329 -
3
votes1
answer444
viewsQ: Find objects in mysql
Good afternoon, I am using Workbeanch 6.3 and I need to search in the Mysql database if a particular Column exists and what its Table, I also need to know if a particular Column is used in a…
-
5
votes2
answers8376
viewsQ: Convert a positive decimal number into negative
I have the following query: Valor1 = '200.000,00'; select Valor1 from TB1 Is there any function that converts a positive number to negative?
-
3
votes1
answer1262
viewsQ: Mysql Error Code: 2006
Good morning, I am using Mysql Workbeanch 6.3.5, the connection is ok, but when I make a simple select in any table gives the following error: Error Code: 2006. Mysql server has Gone away…
mysql-workbenchasked hard123 2,329 -
5
votes1
answer688
viewsQ: How to publish an MVC 5 site?
I made a subscription to Godaddy and I’m having doubts to publish the project. Currently in the root directory of the site contains only one HTML page: index.html, as we can see below. index.html:…
asp.net-mvcasked hard123 2,329 -
1
votes4
answers444
viewsQ: Incorrect date on return of json
Good afternoon, Json’s return brings the badly formatted date = "/Date(1420077600000)/", how to treat ? {"TB1":1,"DTADMISSAO":"\/Date(1420077600000)\/"} This is the section where the Data field:…
-
1
votes1
answer12835
viewsQ: Show "Wait..." message while the page loads in full - MVC jQuery
I have a view who carries a Datatable.Net, where I need to display a popup with the message "Aguarde...". Popup opens when the page is loaded, but how do I close it? The way I did, Popup doesn’t…
-
8
votes1
answer1373
viewsQ: How to handle duplicate key error?
How do I handle duplicate key error? I need to display message to the user that the "Item is already registered" Something like that: try{ //tenta inserir no Banco de Dados…
-
1
votes1
answer122
viewsQ: View 3 Models in a View
I have 3 Models and I need to assemble 2 (two) lists and a "Save) button": Class: Tbproduct: public class TBProduto { [Key] public int TBPRODUTOID { get; set; } public string DSPRODUTO { get; set; }…
-
1
votes1
answer275
viewsQ: Jsonresult return error
I’m having a hard time understanding this problem: When I click on the line Datatable to edit the Customer data error occurs whenever the Customer has a Contact or a registered Address and this is…
-
1
votes2
answers2209
viewsA: Get the client id from a selected Datatable line
I found the solution and Fic ai for those who go through the same situation as me, the solution was to add the value of the client id to the attribute "id" for the parameter "rowCallback": of the…
asp.net-mvc-5answered hard123 2,329 -
1
votes2
answers2209
viewsQ: Get the client id from a selected Datatable line
How to Get a Customer Id from a DataTable This column is hidden ? When I click on the line DataTable I will need this ID to display in another View with Customer details. I have the following code…
asp.net-mvc-5asked hard123 2,329 -
4
votes1
answer2279
viewsQ: Load Datatable with Jquery and MVC 5
Good morning!, I read some articles about Datatables.net, for example: Datatables.net - Examples index Load tables with json using Datatables Using jquery Datatables with ASP.net MVC 5 but I cannot…
asp.net-mvc-5asked hard123 2,329 -
2
votes1
answer327
viewsQ: Send two models to a View
I have two models: TBFuncionario and TBEndereço: namespace Lamar.Dominio.Entidade { public class TBFuncionario { public int TBFUNCIONARIOID { get; set; } public string MATRICULA { get; set; }…
asp.net-mvc-5asked hard123 2,329 -
1
votes1
answer194
viewsA: How to pass Object type parameter to Jsonresult
The most immediate solution I was able to pass the parameters as text: var TBCOMPOSICAOID = $("#TBCOMPOSICAOID").val(); var DSCOMPOSICAO = $("#DSCOMPOSICAO").val(); $.getJSON("/Composicao/Novo/" , {…
-
2
votes1
answer194
viewsQ: How to pass Object type parameter to Jsonresult
The view always receives the Null object, why ? This is the jquery code snippet: var obj = new Object(); obj.TBCOMPOSICAOID = 0; obj.DSCOMPOSICAO = "TESTE"; var TBComposicao = JSON.stringify(obj);…