Questions tagged as 'asp.net-mvc-5'

0
answers

Error - Only primitive enumeration types or types are supported in this context in Asp.Net MVC

As explained in this link Only parameterless constructors and initializers are supported in LINQ to Entities return View(db.Cursos.ToList().Select(c => new CursoInscricoes(c, db.AlunoCursos.FirstOrDefault(ac => ac.Aluno.Equals(aluno) &...
asked by 07.06.2015 / 04:26
1
answer

Bower in Visual Studio 2015

I downloaded Visual Studio 2015 Community and went to test to see if everything was OK. But it is not, when I create an ASP.NET MVC 5 web project, the bower.json file does not 'offer' Intellisense as it shows in some tutorials. Anyone have any i...
asked by 09.10.2015 / 06:33
1
answer

Error filtering data from table Datatable

I have a ViewBag where I populate a select with a list of years. When selecting a specific year, filter the table with data only from those years. To do this filter, I'm using a script: $(document).ready( function() { // any t...
asked by 08.03.2015 / 15:27
0
answers

MiniProfiler error asp.net mvc 5

I'm trying to use the MiniProfiler I made the following configuration: PM> Install-Package MiniProfiler PM> Install-Package MiniProfiler.MVC4 (According to Doc, it also supports MVC5) PM> Install-Package MiniProfiler....
asked by 11.12.2014 / 14:08
1
answer

Perform field sum in table

I have a view that returns me data that the taxpayer paid the pension in the current year, where I return the monthly payment of the same. I need to complete the sum of the months, creating a monthly subTotal. Currently I have this data in my...
asked by 05.03.2015 / 15:57
2
answers

Bootstrap collapse

I'm creating a list using collapse in an interaction of loop , but they're all starting open, I'd like only the first item of my collapse to be open. If you double click on one of the items, it closes all the others, leavi...
asked by 29.01.2015 / 13:25
2
answers

Login with network user

When I open the page I'm building, the user logged in by the network will log in to the page with that user, but without having to open a page for it, that is, my system will have to get the guy access the portal / system. I use: VS2013 - MVC...
asked by 13.08.2014 / 02:01
1
answer

Return in the view more than one data list

In my return view (), how can I return two or more lists? These lists are the results of a linq query.     
asked by 18.09.2014 / 19:52
0
answers

Make query using Object with the Entity Framework

I have a method that gets a object that can be both int and string , does anyone know a way to entity framework interpret the object!? I know I can make a if and do the check, but I'm trying to do it in a sim...
asked by 15.06.2015 / 04:21
1
answer

Date Validation with DataAnnotation

I wanted to know if I have validate whether the inserted date is larger or not than the current date using Annotation, or if I have to handle the same controller. If so, please provide an example.     
asked by 13.11.2016 / 02:13