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

0
answers

About Events in the JStree

I am using a jstree in a .net mvc5 application but when I load it with the root node closed and it does not show the child nodes, I have to double click to expand, as I can make it open by default in the first level, and that when a single click...
asked by 30.01.2018 / 20:18
1
answer

an exception of type 'system.nullreferenceexception' occurred in driver.dll (in TempData) [duplicate]

Why is my error? The error arises in the About action method, just in the ViewBag line.Message = TempData ["data"]. ToString (); public ActionResult Index() { ViewBag.Mensaje = "Bienvenidos al Curso de ASP.NET MVC";...
asked by 29.01.2018 / 04:27
1
answer

Show hidden rows of a table with data-toggle="collapse" in Asp.Net Mvc

Hello good day I am using data-toggle="collapse" in Asp.Net Mvc to hide some columns of each row and that when clicking on a row those columns are displayed and it does so but I would like it to click only the data of the row that I am selecting...
asked by 24.01.2018 / 15:38
0
answers

How do I validate a Login in .net using mvc?

I have created the view and the login control but it does not validate me or redirect me to the tables, in this case to the students once logged in, it is even more valid if you have data or not, I show the code of the controller public class...
asked by 05.12.2017 / 15:30
1
answer

How to configure DbContext for the name of tables in the singular?

I am starting to work with MVC 5 and Entity Framework 6, I clarify in advance that in my project I am not using visual studio assistants for EF since I want to understand in depth how it works. Well, my problem comes when reading a table from my...
asked by 21.01.2018 / 18:16
2
answers

ASP.Net MVC 5 Scaffolding Template Does not show the related property in the View Details

Create the Book Model: Then the Model Matter Then I created the Controlers and assigned them the Models and generated the Views, here in the View Details.cshtml, when I navigate from the list of Books records through the Detail link,...
asked by 19.12.2017 / 20:57
1
answer

Do not create a table in BD based on the model in MVC 5

I'm working with ASP.NET MVC and I need to have it show me a list of registered users, although I do not want them to be saved in the database, but I get them from the RegisterViewModel model that was created automatically when the projec...
asked by 02.08.2017 / 20:19
0
answers

Problem with data upload Dropdownlist

I am a beginner in MVC 5 and I am developing an application, I have the following problem, when I load a DropDownList it sometimes loads null, I do not know if it has to do with the flow of the code or if I need to initialize at some poin...
asked by 20.06.2017 / 19:29
1
answer

Referencing Partial View and showing its data when loading in the parent view

Hi, create a partial view through a one-action method of a controller. When referencing the partial view from a parent view with the following code @Html.Partial("~/Views/SubAutomovil/Create.cshtml") The partial view is loaded in the parent...
asked by 03.07.2017 / 06:13
1
answer

ASP.NET MVC Razor: Way to optimize for loop to avoid System.OutOfMemoryException [closed]

Good morning, basically my question is that: I have an mvc razor application that loads a data context with several tables and views. Once loaded all the models (in my viewmodel) armo grillas using for loops in the following way: @for (int i =...
asked by 16.06.2017 / 14:45