Posts by Anderson Machado • 78 points
14 posts
-
0
votes3
answers49
viewsA: Send information from a Viwer Data grid to sql database
//Segue um exemplo usando o entityframework: ExtratoCentroCusto centroCusto = new ExtratoCentroCusto(); foreach (DataGridViewRow dr in GridRateio.Rows) { centroCusto.Valor =…
-
0
votes2
answers241
viewsA: Popular Datagrid Combobox Windows Forms C#
I managed to solve! I am populating via code as below: FinanceiroDbContext db = new FinanceiroDbContext(); PlanoConta.ValueMember = "Nome"; PlanoConta.DisplayMember = "Nome"; PlanoConta.DataSource =…
-
1
votes2
answers241
viewsQ: Popular Datagrid Combobox Windows Forms C#
I have a datagrid(c# windows Forms) that I need to use for editing and I am populating with information coming from the database of a table called "costs" The Account Plan and Cost Center fields are…
-
0
votes3
answers52
viewsA: I did a project using the VS2015 SPA template. I want to take the start login page
Hello, Have you tried modifying or removing a tag similar to this in webconfig? <authentication mode="Forms"> <forms loginUrl="~/Home/Login" name=".controlestoque" />…
-
0
votes2
answers548
viewsA: How do you get value from the serial port?
Friend, do the following. create a class: I called mine "Dal" mine is like this> using Npgsql; using System; using System.Collections.Generic; using System.Data; using System.Text; public class…
-
1
votes2
answers548
viewsA: How do you get value from the serial port?
I created a way to save the data: public void InserirRegistros(string Carro, string Placa, string Fabricante, string Ano, string Status, string Cor, string Data) { try { conn.Open();…
-
1
votes1
answer250
viewsQ: C# Postgree Connection Error - Locaweb
Dear I have a webservice consuming postgreesql data and when I try to connect with the base after posting. The host I’m trying to use: "servoripanema.no-ip.info" Npgsql.Npgsqlexception: Failed to…
-
0
votes1
answer117
viewsA: Problems with the DAO
I believe that solves your problem. I simulated a "Convenio" object class. Classe Convenio: public class Convenio { public string Nome { get; set; } } Button code: private void…
-
1
votes1
answer2004
viewsA: Call Action via javascript
Try this: $('#btnDS').click(function () { var pass = $('#txtDuplo').val() var action = $('#btnClick').val() if (pass == null) { alert('O campo de senha deve ser preenchido.'); return false; } if…
-
1
votes1
answer65
viewsQ: How to send selected items from a Grid by email
I have a grid and in it I have a product listings from several different suppliers and each supplier has its ID. I would like to select the grid items and send the email to each vendor with their…
-
0
votes2
answers174
viewsA: Webgrid with Radiobutton
to view by clicking on the check-box, you can also use the excerpt below: grid.Column(header: "Visualizar?", format: @<text><input class="check-box" id="assignChkBx" name="assignChkBx"…
-
-1
votes2
answers174
viewsA: Webgrid with Radiobutton
@{var grid = new WebGrid( canPage: true, rowsPerPage: Model.PageSize, canSort: true, ajaxUpdateContainerId: "grid"); grid.Bind(Model.Content, rowCount: Model.TotalRecords, autoSortAndPage: false);…
-
1
votes1
answer908
viewsA: Help to pass an array via Ajax(post) to MVC 5 controller
I managed to solve as follows, I am taking my entire table and passing to Json format through the tableToJSON: My javascript code looks like this: var jsonObject = { "Name": "Produtos", "Dados":…
-
0
votes1
answer908
viewsQ: Help to pass an array via Ajax(post) to MVC 5 controller
I have this code that is generated dynamically by javascript. Simulating a grid <tr class="produto"> <td class="info-CodBarras">123</td> <td…