Posts by LP. Gonçalves • 883 points
27 posts
-
0
votes1
answer133
viewsQ: Asp . Empty Net Dropdownlist After Form Submit
I own a dropdownlist which is dynamically filled after two textboxes have been filled in. When I do form Ubmit the dropdownlist is empty, even if dynamically filled. Dropdownlist…
-
2
votes1
answer472
viewsA: Uninstall packages and all their dependencies at once
Use the command: Uninstall-Package NomeDoPacote –RemoveDependencies This command is responsible for removing the package and its dependencies. It is possible to use the command -Force at the end to…
-
1
votes1
answer44
viewsQ: How to Create an N:N Table where one of the keys does not belong to a table of the same database
Context: The application has a module for record of calls and we use another application handle the incident record, both are in different database. Each call can be related to one or more incidents…
-
4
votes2
answers167
viewsQ: Deserialize Json string[] for string[]
I have the following JSON: {"TicketID":["116","114","112","108","107","104","102"]} When I try to deserialize string[] get the bug: Server Error in Application '/'. No constructor without parameters…
-
0
votes1
answer637
viewsA: How to Change Default Validation Message Language of an ASP Application. NET MVC
The solution I found to the problem was to install the language package corresponding to the desired language directly on the server. After that the validation messages started to appear in the…
-
2
votes1
answer637
viewsQ: How to Change Default Validation Message Language of an ASP Application. NET MVC
I have a model like this: [Display(Name = "Protocolos Abertos")] public int ProtocolosId { get; set; } I use in a Selectlist like value, when I am going to do the Submit of a form the validation…
-
5
votes2
answers487
viewsQ: String Sweep in Search of Substrings Ignoring Accent and Case and For Each Match Perform an Action
I need to search in a string a specific substring and for each occurrence found, I must execute an action to replace what was written by the version in bold, as it appears in the list, ignoring…
-
2
votes2
answers2646
viewsA: How to take an ENUM constant for the entire value?
You must assign a whole number to each month, then just perform the conversion. public enum Mes { Janeiro = 1, Fevereiro = 2, Marco = 3, Dezembro = 12 } Mes mes = (Mes)12; //mes = Mes.Dezembro…
-
1
votes1
answer548
viewsA: I cannot run an application in x86 debug mode
It is possible to solve this problem by dll correct for the environment, it has to be compatible with what is running, being 32bits or 64bits.
-
3
votes2
answers294
viewsA: IF within a class
I went through this same problem a while ago as I develop for both types, to solve this I needed to add to my project a "DLL" folder and in it I added both types of dll. So I looked for a way to…
c#answered LP. Gonçalves 883 -
2
votes3
answers895
viewsQ: Return Id’s That Are Not in Database - MYSQL
Problem In a table X and I own N records, but these records are not sequential (throughout Insert, Id will always be larger than the previous one, but not necessarily the next number). I need to…
-
5
votes2
answers755
viewsQ: What is #pragma c#
By maintaining a code of a web service I came across the following code snippet: #pragma warning disable 1591 Searching for its meaning, I did not find anything in Portuguese that was easily…
c#asked LP. Gonçalves 883 -
-1
votes1
answer807
viewsQ: How to Compare More than One Piece of Data Between Two Sheets and Sum That Data Based on a Condition
I have two spreadsheets, they have basically the same data, but they are not 100% equal. I need to take the Id(column A) of the client in worksheet1 and check in the row where it exists in…
excelasked LP. Gonçalves 883 -
-1
votes1
answer424
viewsQ: Return Controller Image and Render to an HTML Tag Using Javascript/Jquery
I need to render an image returned from a controller to display it to users. I believe that this my code, is very close to the final result, but I can not achieve this final result, always is…
-
6
votes1
answer130
viewsQ: Difference Between Using "FROM Table, Table2" X "Join Table ON Table2"
Considering the two forms of union of tables through a join(anyone): SELECT Tabela.A, Tabela.B, Tabela2.C FROM Tabela LEFT JOIN Tabela2 ON Tabela.Id = Tabela2.TabelaId And a union using from SELECT…
-
1
votes2
answers1761
viewsQ: ASP.NET MVC - How to Change Textboxfor’s "Name" Attribute
You can change the name of the field generated by @Html.TextBoxFor ? I found nothing in Portuguese related to this. I tried something like: @Html.TextBoxFor(x => x.ToDate, new { name = "to" }) If…
-
11
votes4
answers977
viewsA: Separate repeated values in a list
Use the Distinct to remove duplicated items, generating a new object. List<int> novaListaDeInteiros = listaDeInteirosVelha.Distinct().ToList(); This will return a sequence List<int>…
c#answered LP. Gonçalves 883 -
11
votes3
answers17994
viewsQ: What is the Difference Between HTML.Actionlink vs Url.Action?
Reading some tutorials of ASP.NET MVC I found these two helpers being used to do basically the same thing, which was to direct the user to a new view. So I wonder if there’s any more remarkable…
-
1
votes1
answer196
viewsQ: Is there a Problem in the Existence of Duplicate CSS, but 100% Equal?
I have an application, where I have a file called "layout" which is responsible for displaying the whole HTML(head, footer, body just to call the side menu which is another file), CSS and Javascript…
-
5
votes2
answers4615
viewsQ: SQL LIKE is Case Sensitive(Case Sensitive)?
By having this doubt, I did not find quick results in Portuguese that offer answer(most of the results are in Stackoverflow in English). It would be interesting to have an objective answer here in…
-
0
votes2
answers225
viewsA: Problems saving a selected item in Dropdownlistfor using a Viewmodel
If I understand your problem well, the solution is very simple, just fill in the CategoriaId before calling the view. Yeah, how do you know, CategoriaId is responsible for the value of the selected…
-
1
votes2
answers1383
viewsA: Pick up a selected item on Dropdownlistfor using an ASP.NET MVC Viewmodel
How to receive the selected category in the dropdown? When you use: @Html.DropDownListFor(model => model.CategoriaId, new SelectList(Model.Categorias, "CategoriaId", "CategoriaNome"), new {…
-
1
votes0
answers142
viewsQ: How to Interact (read/write) with a Web Application that Opens Only Inside a Specific Browser
CONTEXT I use a web application that only works with the IE8 for customer management. So I developed a script for AutoIt to do the job. It works really well and my company thrives. But recently, the…
-
0
votes1
answer35
viewsA: Clickonce does not receive last update
In the company where I work happens the same problem, we identified that it was the proxy that caused this problem. Only on machines with the proxy that happened this. Disable the proxy and install…
-
5
votes1
answer776
viewsQ: Allocation Space for Mysql Fields
First I create the model in my application, then the Entity Framework generates the SQL for the table creation. The first statement generates a column with the type varchar(20), the second generates…
-
0
votes1
answer574
viewsA: Communication between Forms
When opening another form, pass as parameter the form1 to be able to access a method within it to be able to store the information returned from the other form. EXAMPLE FORM 1: private void…
winformsanswered LP. Gonçalves 883 -
0
votes1
answer97
viewsA: ENTITY FRAMEWORK - add-Migration New Project without renaming old tables
Use a Tableattribute [Table("NomeTabela")] @using System.ComponentModel.DataAnnotations.Schema; [Table("NomeTabela")] public class NomeClasse { public int ID { get; set; } public string Name { get;…