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

1
answer

Filter records with dropdownlist

Good morning comrades I am trying to filter the records by means of a dropdownlist but at the moment of clicking the button it only refreshes the page but does not do any search. controller public ViewResult Index(string estado, int? pa...
asked by 03.11.2017 / 18:02
2
answers

Conditioner to show a button

Good afternoon, I hope I can get answers here. I'm working on ASP.net Razor 5 and Entity Framework I have a list in which I have a button called ENABLE. I need that button to enable only show if a certain user is logged in. Can I do it directly...
asked by 26.10.2017 / 17:30
1
answer

ASP .NET MVC Form with field "Image" - Load an image in the "View" and insert it into the DB

I have configured the connection to the database for the "Events" table Which generates me the fields in the model, and in the Image field transforms it to type "byte" public byte[] Imagen { get; set; } In the view I have the "Ima...
asked by 23.10.2017 / 00:48
0
answers

Problem Authorize MVC

My problem is that for some reason the Authorize takes a cookie that is deleted and allows me to put post get whatever is unloved using that same cookie from postman. I leave the code of login, logout and authentication <authentication...
asked by 02.11.2017 / 16:13
0
answers

Problem when creating a "New element with scaffold" in asp.NET MVC

Good morning. I've been following a tutorial from "EF Database First with ASP.NET MVC" and I've been stuck on this part , I need help, I'm pretty new to this topic. Greetings.     
asked by 22.09.2017 / 04:27
0
answers

Error receiving DataSet Valors

DetailCountsCorrectDataSet (parameters) is a method in which you send parameters, this case Dates. I send two dates parameters and make the query when returning the valors I have an error, in (DetailCuentasPorCobrarDataSet) what are the...
asked by 27.09.2017 / 22:24
0
answers

Validate a List with Data Annotations

Good I have a list of objects, each object has a checkbox, if the checkbox is true I want to validate that the Name field and the Last name field have a value. My model: [ListHasElements(ErrorMessage : "Debe escribir en los casilleros")] pu...
asked by 25.09.2017 / 19:10
3
answers

2 models in a view razor asp.net mvc

Good morning I have the following problem create a model to put in another two models to show their data in a single view if I put public List<Producto> Productos {get; private set;} public DetalleEntrega Detalle {get; private set;}...
asked by 31.08.2017 / 14:31
0
answers

I need to execute a SQL query in LINQ to return a list of a Complex Type

I have a Complex type called GraficaLD that has two properties, an int property called Data and another string property called Label, which I try to do is return a list "List" by executing a query with LINQ This is my SQL query: select su...
asked by 23.08.2017 / 17:02
1
answer

two tables in an Asp.NET MVC view [closed]

Good morning classmates a newbie question in ASP.NET MVC to put data from two different tables, do I need to create a third class so that the data can be seen in a single view? If you could give me an example in code or tutorial I would be very...
asked by 10.08.2017 / 13:33