Posts by Heber Nickison Pietrafeza • 21 points
7 posts
-
0
votes3
answers86
viewsA: Why do you print the variable type instead of the result?
The problem is that you defined List as String a class and started as New List(); being a type of variable. List<String> selecoes = new List<String>(); //ou List<string> selecoes =…
-
0
votes1
answer213
viewsA: Run Modal Open Screen Script in Ajax. C#
So I analyzed your code, if the modal is loaded by ajax, include the js code in the ajax Success, it will be yours .ready $("#btnNovo").click(function () { $(".modal-body").load("/Pais/Create",…
-
1
votes3
answers335
viewsA: Add data from a sql column c#
//Tente assim usando o sum do LINQ using (PontoEntities entity = new PontoEntities()) { Colaboradores cola1 = entity.Colaboradores.Where(cn => cn.Nome ==…
-
1
votes3
answers261
viewsA: How to send selected data to an ftp server
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Web; namespace Examples.System.Net { public…
-
0
votes2
answers262
viewsA: Dropdownlistfor selected values do not persist
//Você deve usar um MultiSelectList: ViewBag.itens = MultiSelectList(itens, "id", "Nome", itensSelected); //E no html: @Html.DropDownListFor(model => model.Estagios,…
-
0
votes1
answer42
viewsA: Problems with Session distinction when two people log with the same user
You can create an id using the machine ip or even browser identification information, and you can turn this information into a single MD5 for each connection.
-
0
votes2
answers2031
viewsA: Problems with types and conversions when filling a page
//Form 1 //Include at the beginning of your View a type for it: @model List //In the controller: Return View(Montaarvoreacao.Create tree()) //does not need Viewdata. in the view this mode query is…