Questions tagged as 'asp.net-mvc'

1
answer

Display value of an object item using Javascript

I'm a beginner in Javascript, I'm not sure how to display the value qtdeEstoque of listaTamanhos . Can anyone help me? alert("Tamanho: " + lista.Value + " / Estoque: " + data[i].qtdeEstoque); listSizes: id qtdeEstoque C...
asked by 13.10.2016 / 14:34
1
answer

How to concatenate a list of an object in a property of another object?

I have the following template: public class Usuario { public int idUsuario { get; set; } public string Nome { get; set; } public string Email { get; set; } public string Senha { get; set; } public int Permissao { get; set;...
asked by 08.10.2016 / 19:18
1
answer

How to make interaction from WEB application to client machines

I have a WEB application in ASP.NET MVC which is an intranet project. I would like to add some functionality in it to make it easier to work with Backup's. I already have a WIDNOWSFORMS APPLICATION that executes user-aware backu...
asked by 07.10.2016 / 23:29
0
answers

ASP.NET MVC Reports in PDF and EXCEL

Good afternoon, I would like to get references about better reporting tools in an MVC application that allow me to export the result to PDF and EXCEL. Currently, I'm creating a VIEW, filling a MODEL with the data, and making it possible to ex...
asked by 05.10.2016 / 16:27
1
answer

List reservations by Administrator

I'm trying to list my reservations by different admins. However, the way I did, he lists all the reservations. This is the method I'm using: public ActionResult Index() { Administrador administrador = db.Administradores.FirstOrD...
asked by 24.09.2016 / 03:07
1
answer

Null parameters in controller when sending post via ajax

I'm refactoring an ASP.NET MVC application written by another developer. My intention is to remove the use of FormCollection . Before signing the controller method it was as follows: public ActionResult Salvar(FormCollection Parametro...
asked by 12.09.2016 / 15:31
1
answer

How to validate an IEnumerable property using DataAnnotations?

I want to validate this IEnumerable<long> selectedItems using select to check if it is empty because it needs to at least have a selected value. I have a IEnumerable it's to display a DataAnnotations to select mu...
asked by 21.10.2016 / 21:54
2
answers

Lock click on the menu item after the first click

I'm having trouble blocking simultaneous clicks on menu items in my application, when the user clicks the first time I want them to block attempts at new clicks, I want to do this because I have a user clicking a 100 times menu item which takes...
asked by 03.10.2016 / 04:06
2
answers

Send to driver model filled

I have on my main page two partial views, each with a specific view model associated, where all screen fields are assembled through Razor, as shown below: <div class="row"> <div class="col-sm-6 col-md-5 col-lg-4"> <div cla...
asked by 02.09.2016 / 18:34
1
answer

How to create web.api project MVC 4 instead of MVC 5

I have a problem when creating my project in VS 2015, whenever I create the web.api application it creates with the version of MVC 5, but I need it to be MVC 4 because of hosting. Downgrade version does not work, VS does not downgrade all refere...
asked by 11.10.2016 / 02:40