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

1
answer

Problem with keys in EF mvc5 asp .net

I have defined the keys in each of those entities with the attribute [key] as you can see in the photo, apart from that the namespace is imported "using System.ComponentModel.DataAnnotations;" and when creating controllers this happens....
asked by 23.11.2017 / 22:43
1
answer

Does not show a query data in the view

I'm working with C # ASP.NET MVC5, I'm new to this technology, I'm doing a web page where I need to display data from three tables in the view, I show them the structure of the database. log table |-----------------|-------------------|--...
asked by 26.12.2017 / 17:54
1
answer

Does anyone know how to fill a Pie Graphics from a driver?

I have been searching the internet for a way to fill the data from a controller, the code is programmed in ASP.NET MVC 5 RAZOR. I show you the code below: VIEW <script type="text/javascript" src="https://www.gstatic.com/charts/loader....
asked by 27.10.2017 / 01:33
2
answers

How to send an IList data set from the Controller to the View?

I get an amount N of elements of the session, how can I send it to the view and show it in a DropdownList? or as in windowsForm it is known as a combobox public ActionResult Index() { IList<CModel> c = (IList<CModel>...
asked by 04.10.2017 / 20:43
2
answers

Two Models in an MVC view 5

I have two Models: public class Solicitudes { public int SolicitudesID { get; set; } public DateTime FechaEmision { get; set; } public DateTime FechaInicio { get; set; } public DateTime FechaFin { get; set; } public string...
asked by 09.10.2017 / 23:30
1
answer

Multi Models in an ASP NET MVC view

Hi, I'm new to C # and MVC ASP NET and I have the following complication. I'm trying to flatten the data of different models in a single view to use this data in a form, to all this I found that I can (mix?) Two models or more in a parent model...
asked by 11.09.2017 / 23:16
2
answers

Display data from 1 table and its relationship with another MVC

Good day mates I have this Action Result in the controller Products that looks for all the products of a certain IdEntrega and I send it to call from the Delivery view to know all the products of that delivery and it works well but now I need th...
asked by 28.08.2017 / 16:20
1
answer

Error running a Foreach ASP.NET MVC5

Hello Stack colleagues, I currently want to run some data through a cycle foreach but I have a problem always throws me the following error    Parser Error       Description: An error occurred during the parsing of a resource   requir...
asked by 16.06.2017 / 01:09
1
answer

How to show the details of a record in a view, that are different from NULL?

I am working on a razor view on MVC5, and I can not make it appear that I do not see the details that I leave null when I register. Example in the image I have several questions but others were left empty because they were not necessary as I...
asked by 28.06.2017 / 20:00
3
answers

How to upload an excel and show your data In C # (MVC)?

I researched on the web how to upload an excel file from: <input type="file"/> After loading it into a list and passing it to a list (I do not care) I just want to know how I can read it from the file loaded in the input. I can not fi...
asked by 13.06.2017 / 02:24