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

3
answers

Problems with DropDownList ASP MVC

Greetings, I have problems with a DropDownList in ASP.net MVC, the website filters the Teachers but at the time of saving gives the following error: This is the error that the System shows:    Exception Details: System.NullReferenceExcepti...
asked by 03.03.2017 / 15:41
1
answer

Access a model from the controller of a ViewModel

I am using ASP.NET MVC4 and I find it difficult to bring data stored in the tables in the database. I understand that there are some clauses ToList() that could list the data, but currently the methods I use always return me null...
asked by 02.05.2017 / 17:42
1
answer

How can I send the data to a post driver without the sent data being lost? MVC

@using (Html.BeginForm("Transactions", "Transactions", FormMethod.Post, new { @class = "formulario" })) { @Html.AntiForgeryToken() <div class="form-group"> <...
asked by 20.02.2017 / 20:54
1
answer

Show users who do not have a department

I want to show the names of people who do not have a departamento The data is: +----+---------+----------------+ +----+--------------------+ | id | Nombre | idDepartamento | | id | NombreDepartamento | +----+---------+--------...
asked by 14.01.2017 / 00:05
2
answers

CrystalReport on iis server does not work - ASP: NET MVC

Good friends, I inform you that I have a problem with Crystal Report on a server IIS . Before publishing if it works for me, but when I mount it in the Servidor IIS it gives me this error    The system can not find the...
asked by 31.03.2017 / 21:50
2
answers

Register a ModelBinderProvider with Autofac in ASP.NET MVC

For an ASP.NET MVC5 application I have created a ModelBinderProvider for a certain type of data. If I add the new ModelBinderProvider to the BinderProviders collection in the Global.asax it works perfectly. ModelBinderProviders.BinderProvid...
asked by 13.05.2016 / 09:35
1
answer

How to get dynamic checkBox values in the ASP.NET MVC controller

I made a view that relates the role of the user to the user, created the view with the dynamic check boxes that can register roles and then assign it to the user, only when sending the marked roles, in the controller does not return to the contr...
asked by 05.09.2018 / 19:22
1
answer

Update partial fields with Entity Framework

I am managing a project with MVC and EF 6.2 , in my model I have an entity that has four fields: public class Entidad { public string campo1 {get; set;} public string campo2 {get; set;} public string campo3 {get; set;} pub...
asked by 07.05.2018 / 02:11
2
answers

How to read the result of ajax with c #?

I have this code that makes me a query an action of my controller, which returns a list in JSON function CargPregRegist(valor) { $.ajax({ type: 'POST', url: '@Url.Action("CargPregTipo")', data: "tipo=" + valor,...
asked by 24.10.2017 / 20:16
2
answers

error 'System.InvalidOperationException' conflict when joining two views?

I have this view that you need the Audit model but the masterPage has @Html.Partial("/Views/component/panelNavbar.cshtml") conflict with the Audit model with ConfMaster how to solve this? Index Audit @model IEnumerable<C...
asked by 11.04.2018 / 15:25