Questions tagged as 'asp.net-mvc'

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

Uncaught Error: [$ injector: modulerr] - Asp.Net MVC

I'm having trouble loading the controller data into Angular. I do not understand, I followed the explanation step by step and I gave this error. var app = angular.module('app', []); app.controller('clienteController', ['$scope', '$http', cl...
asked by 08.10.2015 / 16:12
1
answer

Error in query LINQ (Lambda Expression)

I have a query, which was working perfectly in my controller . I made a change (I do not know which) and stopped working. I do not know what I did wrong, to stop working. Error:    The string contains more than one matching element...
asked by 21.01.2015 / 22:53
1
answer

How to load a partialview for an AJAX request? [closed]

I can not load a partialview into a div! <fieldset> <legend>Contato:</legend> @Html.Label("Tipo Contato: ") @Html.DropDownListFor(t => t.CodTipoContato, Model.TipoContatoList, new { id = "tipoContato", name = "tipoCon...
asked by 27.01.2015 / 14:51
1
answer

How do I return to the View the items checked by the CheckBox?

I'm developing an ASP.NET MVC project. In my registration form, I have a checkbox where I select the items that I would like to add in the DB. My edit form, I have to get these items checked and show in the view: all the items that are in the gr...
asked by 13.02.2015 / 13:25
0
answers

jquery validation problem

I'm using a form to populate items in a list dynamically. I cleaned the form fields by inserting the items from the list into adding items. Problem: When I submit it to write, Razor @Html.ValidationMessageFor help intervenes not all...
asked by 22.12.2014 / 15:25
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

ASP.NET MVC Paging

I currently work with data like this: The context returns me all the Bank Customers public IEnumerable<Clientes> ListarTodos() { return contexto.Clientes.ToList(); } In the controller I call ListAll () pub...
asked by 07.07.2014 / 16:27
1
answer

customize create () on kendo toolbar

I need to customize the Create button of the Kendo UI Toolbar (the one that creates a new line to add values) so that it creates a new row for each object in an array, which comes from another pre-selected grid @(Html.Kendo().Grid<Inventar...
asked by 28.10.2014 / 17:31
1
answer

User permissions calling all rules with each access

I have MyRoleProvider implemented and access works normally, if the logged in user does not have the registered rule it does not allow access. The problem is that with each access to an action with the authorization attribute it takes...
asked by 25.08.2014 / 22:27