Posts by DFernandes • 141 points
9 posts
-
1
votes3
answers70
viewsA: When opening a div hide the div anteiror
friend, try the following code, then you can make the adjustments to your case function isAlterar() { document.getElementById("div1").style.display = 'none';…
-
1
votes1
answer148
viewsA: Pick only one item from an ASP.NET MVC list
friend you can do in two ways, are the ones I know and apply in the solutions here: 1° option: <label>Categoria</label> <select asp-for="Establishment.Id_Category" asp-items="@(new…
asp.net-mvcanswered DFernandes 141 -
1
votes1
answer587
viewsA: Opening PDF in new tab using ASP.NET
friend, I made one that did something similar that worked as follows: vc would put in the case the direct code in HTML, in the view that would have the link to click on the PDF <strong> <a…
-
0
votes1
answer351
viewsA: Error trying to open SQL connection - Server Version - System.Invalidoperationexception - Connection is closed
friend, try replacing your Getconexao method with a simpler one, for example public static SqlConnection GetConexao(){ return new SqlConnection("…
-
0
votes2
answers74
viewsA: Foreach repeating values when running sqlquery
friend, I made a test here using the same logic as yours, I just changed the command to run the query by Fromsql and it worked perfectly, all 26 state and 1 DF, when adding in the list tbm works…
-
4
votes3
answers214
viewsA: Error: "Return should not be followed by an object expression"
friend, check these lines if they are indeed correct query.Parameters.AddWithValue("@nomeOS", codOS); query.Parameters.AddWithValue("@nomeCliente", nomeCliente);…
-
0
votes1
answer150
viewsA: Capturing values from a Select to the Controller - Codeigniter
<select class="form-control" id="menuselect"> <option value="1">Only me</option> <option value="2">Team</option> </select> just put the value of each option, and…
-
0
votes2
answers590
viewsA: How do I receive a value for each double variable on the console?
string[] dados = null; double area = 0; Console.WriteLine("informe o comprimento e a largura da area em metros");//o usuario digita SOMENTE os valores EX: 4 4 dados =…
-
0
votes1
answer40
viewsQ: Doubt Entity Framework Core
I’m learning to program using EF, I’m doing from BD First, I have a BD from another project, and I would like to create a solution based on this comic, I decided to leave very quietly, starting with…