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

1
answer

When doing POST I do not correctly recover the value of a radio button

I try to describe my scenario. I have a view that contains two radio buttons and depending on which one is selected, a partial or another view is displayed. @Html.RadioButtonFor(model => model.TipoVP, new String("VP_A".ToCharArray()), new...
asked by 20.12.2018 / 15:21
0
answers

How to search by means of ID and modify or delete ASP.NET

I commented that this is my update code, this code I leave my controller I did, the question is how can I make my method to search by id and then do the action of delete or update, they would be so kind to support me, please, I leave my method o...
asked by 11.12.2018 / 20:50
1
answer

Problem sending data to the controller from jquery ajax

I try to send a parameter to the controller from jquery using an ajax call and by POST. I get an error 500.    Failed to load resource: the server responded to a status of 500 (Internal Server Error) My controller's code is this: [Autho...
asked by 10.12.2018 / 11:54
0
answers

Search id with Razor and Ajax ASP.NET

The detail is that in my view I have the delete and search mode. Through an ajax I do the search but it does not do the action, because it is looking for the view that it does not have and that is the same one where I have the method to eliminat...
asked by 14.12.2018 / 01:18
0
answers

Does not contain any public definition for GetNumeric ASP.NET

Someone who can guide me to correct this error, it appears in the (foreach) and so far I have not been able to correct it, likewise I put the code of my clsEntity, where the properties are . @model model.entity.Alumno @{ ViewBag.Title = "i...
asked by 07.12.2018 / 00:03
0
answers

The current type, Project.ServiceLayer.Interface.IMenuService, is an interface and can not be constructed. Are you missing a type mapping?

I have the following problem, since I made a branch change in my project, which I run on .net 4.6.1 (I tried already uploading and downloading the version and updating the unity libraries, and even deleting and re-cloning the project), and is th...
asked by 02.01.2019 / 17:03
0
answers

How to generate a report in an mvc project 5

Hi, I am new by programming on asp.net mvc, but I wanted to know or to suggest how to generate a report to print, the idea is that I have developed an application with a database on sql server, based on the information create the report and the...
asked by 06.12.2018 / 05:11
0
answers

Show a DropdownList in an MVC C # view using Entity Framwork-

I am trying to show a dropdownlist, of an entity that I have in my model, for that I used entityframework database first. Code in my view: <div class="col-md-10"> @Html.DropDownListFor(x => x.Nivel.NivelID, new Sele...
asked by 28.11.2018 / 14:39
0
answers

My application is only visible on the server, not on the IIS 8 intranet

It turns out that you create an application with ASP.NET MVC in the company to publish it on the intranet in the server windows 2012 IIS 8, at the time of publishing it with the ip address of the server everything works fine, but when I assign a...
asked by 23.11.2018 / 15:14
0
answers

Because Include does not bring the users with whom it is related, only the accounts

Good day I currently have three tables for the subject (Subject), user and the relation materia_usuario (Enroll_Teacher_Subject). I am making a query in the controller in which I want to show me the subject and the relations with the table mater...
asked by 19.11.2018 / 15:41