Questions tagged as 'asp.net-mvc'

1
answer

Web Helper Chart does not appear in the server application

Action that mounts the Chart: public ActionResult GraficoPedidos() { int [] arrayP = new int[12]; int aux = 0; for(int i = 1;i <= 12;i++) { int numero = Convert.ToInt32(context.Pedidos.Count(p => p.DataPedido....
asked by 07.03.2016 / 21:16
2
answers

Errors Model State Call Ajax

Good afternoon, I have a registration screen that I am making an ajax call to send the data, however when the user does not fill some field I need to show a field validation error message. In other sign-up screens on my system I used the @Html.V...
asked by 08.03.2016 / 20:37
1
answer

SelectList with ViewBag

I am trying to make a SelectList using ViewBag . But when I run my code it shows where the information I'm trying to access is, for example: NomeProjeto.Models.NomeModel I'm using the following code in my Controller : v...
asked by 31.05.2016 / 21:01
1
answer

Remove "www" from domain by doing 301 redirect

How do I redirect a www.dominio.com.br to dominio.com.br (without www)? I'm using asp.net mvc .     
asked by 03.01.2016 / 15:55
1
answer

How to get the value of a Dropdownlist to choose the action to execute

I ask your help in helping me put the following situation together: I have a structure in EF database first where I have a type that the user must select and after selecting this type in the dropdownlist it must trigger a corresponding action...
asked by 07.01.2016 / 17:59
1
answer

CSS Positioning in _Layout.cshtml

I'm having positioning problems with @RenderBody() , I can not adjust it according to the side menu, I would like a solution, thanks. <divclass="nav-side-menu"> <div class="brand">Life Players</div> <i class...
asked by 08.01.2016 / 17:32
1
answer

ASP.NET form validation mvc!

I have a form that validates the fields when trying to send information, but I have a "novapagina" option where I would not like to validate the fields, would that be possible? In views <div class="container droppedHover"> <br/&...
asked by 28.12.2015 / 05:00
1
answer

Quantity limit on database query

public IList<DtoContrato> ConsulteListaPorListaDeIds(List<Guid> listaIds) { return Conversor(Persistencia().Where(x => listaIds.Contains(x.Id))); } My question is, if the list of ids has 100mil records for example, can nhiber...
asked by 24.12.2015 / 10:33
1
answer

How to generate a hash for the user password with ASP.NET MVC and .NET 4.5

I'm implementing a user authentication / registration feature with ASP.NET MVC 4.5, but I can not find a more correct way of working with passwords in the database, I do not want to simply generate an MD5 and write to the database . Is there...
asked by 26.02.2016 / 21:47
1
answer

Post null in the MVC edit

Hello, I have the following situation, my Edit returns a group of Classes filled for editing. In my View the data is filled correctly, however, when I edit a field and send save in Edit (Post) my Model arrives...
asked by 09.12.2015 / 12:31