Posts by Cezar Mdlosci • 85 points
15 posts
-
0
votes3
answers1479
viewsQ: Show input value by clicking the button
How do I show value I typed in input after clicking the button? mine always returns empty: var x = document.getElementById("usuario").value; var usuario = $("#usuario").value;…
-
0
votes1
answer223
viewsQ: SQL SERVER Filter
I have an exercise to do but I’m cracking my head here: "SQL command that brings me the sum of the salaries received per employee and status in the year 2014 of the tables: SALARIES / EMPLOYEES /…
-
0
votes1
answer56
viewsQ: Pass Httppostfilebase as parameter in the API method
I have an Api that makes employee registration and also a photo, in the parameter I pass the object and a type htttppostfilebase, but when sending to api in my debug is not even hitting the method,…
-
0
votes0
answers41
viewsQ: Dropdownlist Asp.net mvc
I have a product that can be registered in 2 stores A and B if I have already registered in A how do pro Dropdownlist show me only show option B next time it is in register? what would be the logic?…
-
0
votes1
answer68
viewsQ: Does not display data on the Web Api Asp.net mvc screen
I started studying a bit of web api using Asp.net, I’m doing a very simple example where I just want to list the data from the employee table, but I get error: No Mediatypeformatter is available to…
-
1
votes2
answers53
viewsA: Attach dropdowlist item and a li Asp.net mvc
Solved, I was putting wrong dropdowlist id so it’s returning Undefined, now it’s right. <div class="form-group"> @Html.LabelFor(model => model.ListaPecas, htmlAttributes: new { @class =…
-
0
votes2
answers53
viewsQ: Attach dropdowlist item and a li Asp.net mvc
I have a view with dropDowlist that contains data that comes from the database and just below put a buttom that when I click will attach the selected dropdownlist item in a list, I made a code here…
-
0
votes1
answer427
viewsA: Decimal type field Entity Framework ASP.NET MVC
I resolved it as follows: public ActionResult Detalhes(int id) { ConsertoVM model; using (Db db= new Db()) { decimal total = 0m; Conserto cons = db.Conserto.Find(id); decimal vPeca =…
-
1
votes0
answers280
viewsQ: Add field of decimal type Entity framework
I have a Repair table in it I have Valuemade, Value and Total Value all of the decimal type. The Value field = Valuemaod + Value Library. However this returning 0. I am showing this in the Detail…
-
-1
votes1
answer427
viewsQ: Decimal type field Entity Framework ASP.NET MVC
I have a table called Pecas where only has name and value, but when I click create new piece is not saving in the database, appears the msg that was added but is not entering, in debug shows the…
-
3
votes6
answers6243
viewsQ: check repeated number inside the array c#
I created a predefined array with some numbers, and I want to know how many repeated numbers there are in the array. but it is only returning the size of the array and not Qtd of repeated numbers.…
c#asked Cezar Mdlosci 85 -
0
votes1
answer2087
viewsQ: Add project already exists to github
I already have a solution created on github, I’ve already created an account too, I just want to add my project already done in a repository, but I’m not getting it. I’ve already added the github…
-
2
votes1
answer158
viewsQ: Add photos and gallery to an ASP MVC product
I’m starting in Asp.net using mvc 5, I’ve taken some basic courses, and now I want to make a simple little complex virtual store. but I am in a crucial doubt in the product table, it will have a…
-
0
votes1
answer171
viewsQ: Problem has no key defined. Define the key for this Entitytype
Tested having problem with relation between Department and Employee tables This returns 2 error: -"Entitytype 'Funcionario' has no key defined. Define the key for this Entitytype." -Employees' is…
-
0
votes1
answer771
viewsQ: Kill external process when close form
I created a form that runs an external program when I click on a program click button, but when I close the form I wanted it to give a Kill process in the task manager. However he says he has access…